Posted by Aegidius on 2007-01-15 21:41 CET
(In reply to: Re: High CPU consumption
posted by Hans Salvisberg on 2007-01-09 08:47 CET)
|
Hi Hans, Thanks for your reply. I know that using CP::yield() will let waiting threads to run, so my idle loop does not consume much processor resources when other processes reclaim them. The problem is, that a well-behaved program should not show 100% process time, when it is in idle mode. By the way, when I use ProcessExplorer from www.sysinternals.com (now at Microsoft's site...), it is the NT virtual 16 bit environment process ntvdm.exe showing almost 100% CPU time. I think I should better use callbacks than the event loop to avoid this kind of problem. Aegidius |
| Email: (hidden) |
|
Copyright © 2010 Salvisberg Software & Consulting. All rights reserved. |
Top |