[gnet-dev] Re: [gimpwin-dev] Windows sockets



Andrew J. Lanoix writes:
 > Basically the way all of glib's iochannels work on windows is that a thread 
 > is started to wait for activity for each channel. In the case of a sockets 
 > it wait on a select(), all other channels the thread does a busy
 > wait.

Sorry, but the threads certainly don't busy wait. For sockets, as you
say the thread is blocked on select(), and for file descriptors the
thread is blocked on read().

--tml




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]