Subject: Re: to schedule() or not to schedule() ?

From: Arnd Bergmann <[email-masked]>
Date: Wed, 6 Aug 2008 23:12:10 +0200

On Wednesday 06 August 2008, Kevin Diggs wrote:
> For the purpose of learning, there is no direct, correct way to yield 
> the cpu when in a timer fired routine, right?
> 

No, in a timer, you interrupt a totally unrelated thread, so sleeping
would prevent that from running on, as well as preventing other timers
from being run, so it's not an option.

One thing that might work for you would be to re-arm the existing
timer and return from your function, so you get back to it after
a short while.

	Arnd <><