Re: Who (and when) is calling the scheduler ?

Rik van Riel (H.H.vanRiel@phys.uu.nl)
Thu, 27 Aug 1998 07:28:30 +0200 (CEST)


On Wed, 26 Aug 1998, Anton Ghiugan wrote:

> "The interrupt routine proper simply updates the variables `jiffies' and marks
> the bottom half routine (see Section 7.2.4) of the timer interrupt as active.
> This is called by the system at a later point ..."
>
> This implies that, in our hypotetical case, the scheduler is never called !
> Still, both of the process are running correctly. Why ?

- the bottom half is called later, but just a little bit later :)
- if (one_of_several_contitions) need_resched = 1;
- on sytem call exit, if (need_resched) schedule();

See arch/i386/kernel/entry.S for more details...

Rik.
+-------------------------------------------------------------------+
| Linux memory management tour guide. H.H.vanRiel@phys.uu.nl |
| Scouting Vries cubscout leader. http://www.phys.uu.nl/~riel/ |
+-------------------------------------------------------------------+

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html