Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 31 Jul 2004 10:28:52 +0100
From:      "Chris Stenton" <jacs@gnome.co.uk>
To:        <threads@freebsd.org>
Subject:   difference between tsleep and usleep in a thread on FreeBSD 5.2.1
Message-ID:  <002c01c476e0$cb53b8b0$037ba8c0@gnome.co.uk>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?002c01c476e0$cb53b8b0$037ba8c0>