Re: [NT] Quantum of interrupted process

From: Maxim S. Shatskih (maxim_at_storagecraft.com)
Date: 05/16/04


Date: Mon, 17 May 2004 02:08:33 +0400


    From what I know, the quantum is accounted since the thread was context
switched to, so, the counting is reset on each context switch.

    ISRs or kernel-user transition do not cause context switches, and thus do
not reset the quantum.

-- 
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@storagecraft.com
http://www.storagecraft.com
"G. Turgij" <t0urguy@hotmail.com> wrote in message
news:c868tj$2kc$01$2@news.t-online.com...
> Hi there!
>
> Let's say we have three processes: P1, P2 and P3
> They are scheduled to run in this order: P1 -> P2 -> P3
> Execution is running in P1 and its quantum (Q1) is almost
> over.
>
> Now P1 is interrupted and control is passed to a KMD while IRQL
> changes to DISPATCH_LEVEL (or let's say a spinlock is active)...
>
> Now my question:
> Will Q1 be frozen and continued from the point when the interrupt
> occured, even if the kernel-mode code takes very long to execute?
>
> In other words: If Q1 and even Q2 would theoretically have passed
> during the kernel operation, will the scheduler switch to P3 with Q3
> set to what's left for P3  - OR - does it return to P1 with the original
> (frozen) Q1?
>
>
> Thanks in advance!
>
> > Gregor Turgij <
>
>


Relevant Pages

  • Re: Tech Help for Big Hit 1977 gottlieb
    ... Playfield Solenoids/Flippers? ... Score Reels reset? ... show which ball is in play and when game is over iy does not ... if a switch is open and you actuate the relay by hand it should ...
    (rec.games.pinball)
  • Re: WILLIAMS EM ARGOSY STARTUP PROBLEM
    ... place your leads on the switch terminals. ... be to place the black lead on the black wire on the Reset relay coil, ... Blue-White wire on Reset relay coil (loose or broken Blue-White ...
    (rec.games.pinball)
  • Re: [patch] sched: unlocked context-switches
    ... now first switch the stack and registers, ... `prev' will never be the same as `next'. ... * switch_mmmay do a full cache flush over the context switch, ...
    (Linux-Kernel)
  • Re: TEAM EM, One last question on Williams Argosy
    ... will reset but the ball in play will stay on three. ... so I'm assuming that there is a switch gapped too ... your Reset relay is gapped too closely. ... Count unit will not reset as it would at the start of a game. ...
    (rec.games.pinball)
  • Re: Paging Team-EM...
    ... The armature switch is a special switch used on 60s Gottlieb EM ... bank, it's mounted on the underside of the bank frame, and it rides a ... plate) for the reset relay. ...
    (rec.games.pinball)