Jump to content

Talk:Event loop

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by EdC~enwiki (talk | contribs) at 21:40, 19 April 2007. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Isn't all this polling causing a lot of wasted CPU usage? --Abdull 14:15, 15 April 2007 (UTC)[reply]

No, the central select (or poll) call is blocking. –EdC 16:06, 15 April 2007 (UTC)[reply]
And blocking (computing) doesn't cause wasted CPU usage? --Abdull 15:49, 19 April 2007 (UTC)[reply]
Certainly not; the kernel will suspend the task until the status of the file descriptor(s) changes or an event occurs. –EdC 21:40, 19 April 2007 (UTC)[reply]