[lug] Returning from select

Budyanto Himawan budyanto_himawan at yahoo.com
Fri May 7 18:54:34 MDT 2004


Thats what I would expect.

Thanks for the confirmation

--- Jeffrey Siegal <jbs at quiotix.com> wrote:
> Budyanto Himawan wrote:
> > Hi,
> > 
> > Does anybody know what is the trigger that causes
> > a select system call to return?
> > 
> > Say I'm doing a select on a read fd set with 50ms.
> > I know if none of the fds in the set becomes
> readable
> > after 50ms, select returns 0.
> > 
> > If I have 4 fds and 1 becomes readable.
> > Would select immediately return or would it wait 
> > for 50 ms and then return however number of fds
> > readable at that time?
> 
> It does not wait, but it isn't guaranteed to return
> "immediately" 
> either.  If the system is busy doing something else,
> it might not return 
> as soon as the first fd becomes readable.  So there
> can be more than one 
> fd readable when it does return.
> 
> 
> _______________________________________________
> Web Page:  http://lug.boulder.co.us
> Mailing List:
> http://lists.lug.boulder.co.us/mailman/listinfo/lug
> Join us on IRC: lug.boulder.co.us port=6667
channel=#colug


=====
===========================
Budyanto Himawan
budyanto_himawan at yahoo.com
===========================


	
		
__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs  
http://hotjobs.sweepstakes.yahoo.com/careermakeover 



More information about the LUG mailing list