[REBOL] Re: forever loops and cpu usage
From: greggirwin::mindspring::com at: 8-Feb-2004 11:25
Hi Paul,
PT> Seems to be a consensus developing. Is this how other languages handle this
PT> issue also?
Basically, yes. That is, this is a basic scenario. If you're writing
some kind of event-driven system (e.g. a GUI framework), sometimes
there are more complex interactions. For example, under Windows
calling certain APIs (GetMessage, PeekMessage) yield to the system in
specific ways to keep a task from eating the CPU. Even deeper, there
is just a big message pump running, so you see the System Idle process
using all the CPU time if nothing else is going on.
-- Gregg