difference between tsleep and usleep in a thread on FreeBSD 5.2.1

Chris Stenton jacs at gnome.co.uk
Sat Jul 31 02:29:29 PDT 2004


Hi,

I am trying to track down a bug  in a pthreaded  programme and wonder if
someone could help.

One of the threads calls a kernel module that puts the process in tsleep
until a defined event occurs. However, in this state all other threads are
not serviced. If I however replace this with a straight usleep in the thread
then all other threads get serviced during that period.

Could someone tell me the difference between the two forms of sleep in a
thread so it may help me track down the problem.


Could you email replies as I am not on this list.

Thanks

Chris



More information about the freebsd-threads mailing list