help-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: threads!


From: Marcus Brinkmann
Subject: Re: threads!
Date: Fri, 5 Oct 2001 17:27:05 +0200
User-agent: Mutt/1.3.22i

On Thu, Oct 04, 2001 at 04:39:15PM -0000, kurian  kattukaren wrote:
> 
> >>"kurian  kattukaren" <kjk_bugs@rediffmail.com> writes:
> 
> >> Will this do for schedule_timeout().
> >BSG replied:
> >It's not the best way.
> 
> >The "canonical" way to write timeout-like functions is >to keep track of a 
> >queue of timout requests, and have a >thread whose job is to sleep until the 
> >top item in the >queue is ready, and then call its function.
> 
> Any info on how to accomplish the above , along with links to thread 
> tutorials are also welcome.
> 
> thanking you,
> kurian joseph
> "knowledge shared spreads geometrically"
> 

The Linux timer emulation code you used already does this
(pfinet/timer-emul.c).  If this is not what Thomas meant, I don't know what
else it could be.

Thanks,
Marcus

-- 
`Rhubarb is no Egyptian god.' Debian http://www.debian.org brinkmd@debian.org
Marcus Brinkmann              GNU    http://www.gnu.org    marcus@gnu.org
Marcus.Brinkmann@ruhr-uni-bochum.de
http://www.marcus-brinkmann.de



reply via email to

[Prev in Thread] Current Thread [Next in Thread]