Semaphores with timeout

Submitted by death
on February 13, 2008 - 3:34pm

Hi,
does anybody know if there is any function to get a process sleeping for a while? I mean, a semaphore with timeout...

Thanks you anyway,

Wake on Event or Timeout

on
February 13, 2008 - 10:36pm

Waking on either an event or a timeout is often done with wait_queues and wait_event_[interruptible_]timeout().

Do you have a copy of Linux Device Drivers, 3rd Edition? It's really useful for this kind of day to day stuff.

http://www.amazon.com/gp/product/0596005903?ie=UTF8&tag=wwwducksongco-20...

-Patrick

--
http://www.ducksong.com/
http://bitsup.blogspot.com/

Or you can read the book

Anonymous (not verified)
on
February 14, 2008 - 11:14am

Or you can read the book online

http://lwn.net/Kernel/LDD3/

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.