|
From: | Felix Winkelmann |
Subject: | Re: [Chicken-users] Improving the scheduler |
Date: | Mon, 19 May 2003 08:57:55 +0200 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.0) Gecko/20020530 |
Chris Double wrote:
Currently a thread-sleep! can cause a busy loop in the scheduler if no other threads are ready. For example, starting 'csi' and executing (thread-sleep! 20) will cause the only thread to sleep for 20 seconds. But the scheduler loops busily for that entire 20 seconds checking the timeouts.Is it possible for something like this to be added to the Chicken scheduler?
Yes, that's no problem. many thanks for your patch, I will add it to the CVS version ASAP. cheers, felix
[Prev in Thread] | Current Thread | [Next in Thread] |