Re: sched_lock mutex and sleepq_wait

2010-02-23 Thread Julian Elischer
Shrivatsan wrote: Hi, I am trying to understand how msleep() routine suspends the currently executing thread. I see that msleep() calls sleepq_wait(). What I don't understand here is the way in which sched_lock mutex is handled. I took the following snippet from FreeBSD 6: sleepq_wait(voi

Re: sched_lock mutex and sleepq_wait

2010-02-23 Thread John Baldwin
On Tuesday 23 February 2010 2:34:11 am Shrivatsan wrote: > Hi, > > I am trying to understand how msleep() routine suspends the currently > executing thread. I see that msleep() calls sleepq_wait(). > > What I don't understand here is the way in which sched_lock mutex is > handled. > > I took t

sched_lock mutex and sleepq_wait

2010-02-22 Thread Shrivatsan
Hi, I am trying to understand how msleep() routine suspends the currently executing thread. I see that msleep() calls sleepq_wait(). What I don't understand here is the way in which sched_lock mutex is handled. I took the following snippet from FreeBSD 6: sleepq_wait(void *wchan) { MPASS