On Tue, Nov 02, 1999 at 02:57:27PM +0100, Sven Heursch wrote:
> But there must be another point where "schedule()" is called.
> For example: A user process with an endless loop: while(1) {;} doesn't
> call a system call. So no "return_from_syscall" can start the scheduler.
> 
> When it gets the cpu the process runs. How is the process preempted by
> the scheduler?
> The timer interrupt occurs while the endless loop, but within the
> interrupt service routine of the timer the scheduler isn't allowed to be
> 
> called.

On return from interrupt, the need_resched variable is checked and
the scheduler will be called if it is not zero.
See arch/i386/kernel/entry.S for an example.


--- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
----
For more information on Real-Time Linux see:
http://www.rtlinux.org/~rtlinux/

Reply via email to