Re: Doubts with scheduler code

2007-01-03 Thread Anand H. Krishnan
Hi, > * First one is in the wakeup() code. After a series of calls wakeup() > lands in maybe_preempt() and if preemption is enabled maybe_preempt() > switches to a new thread (if a high priority thread has been made runnable). > That means that an interrupt handler which calls wakeup() will no

Re: Doubts with scheduler code

2007-01-03 Thread John Baldwin
On Tuesday 02 January 2007 05:42, Anand H. Krishnan wrote: > Hi, > > I had a couple of doubts when I was going through 6.1 freebsd code. > > * First one is in the wakeup() code. After a series of calls wakeup() > lands in maybe_preempt() and if preemption is enabled maybe_preempt() > switches to

Re: Doubts with scheduler code

2007-01-02 Thread Coleman Kane
On 1/2/07, Anand H. Krishnan <[EMAIL PROTECTED]> wrote: Hi, I had a couple of doubts when I was going through 6.1 freebsd code. * First one is in the wakeup() code. After a series of calls wakeup() lands in maybe_preempt() and if preemption is enabled maybe_preempt() switches to a new thread

Doubts with scheduler code

2007-01-02 Thread Anand H. Krishnan
Hi, I had a couple of doubts when I was going through 6.1 freebsd code. * First one is in the wakeup() code. After a series of calls wakeup() lands in maybe_preempt() and if preemption is enabled maybe_preempt() switches to a new thread (if a high priority thread has been made runnable). That m