Is there any way of determining whether a thread in sleep state
is voluntary or not? Would pr_stype tell you that, assuming
you knew the valid values?
Joe Seigh
Joe Seigh
So I'm not sure if you want to know about the sleep state;
if a thread is in runnable state, it is not running (Onproc)
but it is sleeping.
Casper
--
Expressed in this posting are my opinions. They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.
> >Is there any way of determining whether a thread in sleep state
> >is voluntary or not? Would pr_stype tell you that, assuming
> >you knew the valid values?
> The "pr_stype" value derives from the synchronization primitive
> the thread is sleeping on; so if it is set (it looks like its
> zero if it's not), it gives you the type of object
> it is blocking on.
> So I'm not sure if you want to know about the sleep state;
> if a thread is in runnable state, it is not running (Onproc)
> but it is sleeping.
Joe Seigh
> >Is there any way of determining whether a thread in sleep state
> >is voluntary or not? Would pr_stype tell you that, assuming
> >you knew the valid values?
> The "pr_stype" value derives from the synchronization primitive
> the thread is sleeping on; so if it is set (it looks like its
> zero if it's not), it gives you the type of object
> it is blocking on.
> So I'm not sure if you want to know about the sleep state;
> if a thread is in runnable state, it is not running (Onproc)
> but it is sleeping.
Joe Seigh
1. 'top' output -> High CPU consumption when thread is in 'sleep' state
Can't help directly, but 'top' is deprecated on Solaris nowadays in
favor of the built-in 'prstat' program which provides largely the same
output. Try that and see if it's perhaps a problem with top itself
rather than your system.
--
M.Biswas
2. linux & x25
3. Another report of mozilla in D state, related to the 'uninterruptible sleep' thread
4. ioctl call hangs -- using SuSE 8.2
5. determining socket state without affecting its state.
7. sleep() sleeps the thread or the proc?
8. Routing help
9. Threads not put into run state on Solaris 2.6
10. How i sleep a thread, and doesn't block another thread?
11. State 'D' / uninterruptible sleep
12. How can you tell that the process is in sleep state?
13. Lombard modem state after sleep?