Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!usc!apple!netcom!teda!ditka!mcdchg!tellab5!balr!clrcom!worf.clear.com!rmartin From: rmartin@worf.clear.com (Bob Martin) Newsgroups: comp.lang.c++ Subject: The Scheduler in the Task.h class consumes CPU when idle. Keywords: tasks task.h cpu Message-ID: <1990Nov7.034557.7605@clear.com> Date: 7 Nov 90 03:45:57 GMT Sender: rmartin@clear.com (Bob Martin) Organization: Clear Communications, Inc. Lines: 20 I have been experimenting with the "task.h" classes in the Sun distribution of C++ 2.0. I have been able to create tasks which are happy to share the CPU as true coroutines. I have also been able to use the Interrupt class to catch timer signals in order to implement timed delays for tasks. However, when all tasks are blocked, waiting for an interrupt, the scheduler seems to hang in an infinite loop consuming as much of the CPU as it can. Does anybody out there know how to fix this problem. I would like to use the task class, but cannot afford to have a process eat all the available cpu. Thanks R. Martin -- +-Robert C. Martin-----+---------------------------------------------+ | rmartin@clear.com | My opinions are mine. They aren't anybody | | uunet!clrcom!rmartin | elses. And thats the way I want to keep it.| +----------------------+---------------------------------------------+