Thread scheduling!!

Thanks a million for your help!!!
But still a question…

Is thread scheduling implemented by DPC?

I think when the time slice counter becomes 0,the timer interrupt handler
place a DPC into the DPCs queue and the actual thread scheduler
routine/function is in the DPC object inserted .
When the Dispatch Level interrupt happens, the DPCs are run out and so the
scheduler routine is run to choose the next thread to be excuted.

Right or wrong? I am not sure about what I said…

Wrong.
----- Original Message -----
From: “Andy Hao”
Newsgroups: ntdev
To: “NT Developers Interest List”
Sent: Monday, April 07, 2003 11:22 AM
Subject: [ntdev] Thread scheduling!!

> Thanks a million for your help!!!
> But still a question…
>
> Is thread scheduling implemented by DPC?
>
> I think when the time slice counter becomes 0,the timer interrupt handler
> place a DPC into the DPCs queue and the actual thread scheduler
> routine/function is in the DPC object inserted .
> When the Dispatch Level interrupt happens, the DPCs are run out and so the
> scheduler routine is run to choose the next thread to be excuted.
>
> Right or wrong? I am not sure about what I said…
>
>
>
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@rdsor.ro
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>

I think when the time slice counter becomes 0, the timer interrupt handler
raises a dispatch level interrupt.

Next time when the IRQL of the system falls below DISPATCH_LEVEL, the
dispatch level interrupt handler gets into action. During this the dispatch
level interrupt handler

drains the DPC queue and then it calls the NT scheduler to select the next
thread to be executed.

----- Original Message -----
From: “Dan Partelly”
To: “NT Developers Interest List”
Sent: Monday, April 07, 2003 3:02 AM
Subject: [ntdev] Re: Thread scheduling!!

> Wrong.
> ----- Original Message -----
> From: “Andy Hao”
> Newsgroups: ntdev
> To: “NT Developers Interest List”
> Sent: Monday, April 07, 2003 11:22 AM
> Subject: [ntdev] Thread scheduling!!
>
>
> > Thanks a million for your help!!!
> > But still a question…
> >
> > Is thread scheduling implemented by DPC?
> >
> > I think when the time slice counter becomes 0,the timer interrupt
handler
> > place a DPC into the DPCs queue and the actual thread scheduler
> > routine/function is in the DPC object inserted .
> > When the Dispatch Level interrupt happens, the DPCs are run out and so
the
> > scheduler routine is run to choose the next thread to be excuted.
> >
> > Right or wrong? I am not sure about what I said…
> >
> >
> >
> >
> >
> > —
> > You are currently subscribed to ntdev as: xxxxx@rdsor.ro
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
> >
>
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@hotmail.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>