DragonFly BSD
DragonFly commits List (threaded) for 2005-08
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: cvs commit: src/lib/libc/sys select.2


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx>
Date: Wed, 3 Aug 2005 08:47:09 -0700 (PDT)

:What should we write?  It's just to note that select() does in fact 
:block for the time specified, like sleep, usleep and nanosleep do (= 
:interruptible sleep).
:
:cheers
:   simon

    I would just describe the operation.  Something like:

    When select is run without any descriptor sets, or with empty
    descriptor sets, and the timeout is not NULL, it will still put
    the process into an interruptable sleep for the specified timeout.
    In BSD systems, select's timeout is typically rounded up to the
    nearest tick (1/100 second typically).

    Select's timeout operates in a manner similar to nanosleep,
    but uses a timeval rather then a timespec structure.  It should also
    be noted that in DragonFly the nanosleep() call produces a far more
    accurate sleep interval.

					-Matt
					Matthew Dillon 
					<dillon@xxxxxxxxxxxxx>



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