[Top][All Lists]

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

Re: thread_suspend()

From: Thomas Bushnell, BSG
Subject: Re: thread_suspend()
Date: 30 Aug 2001 12:41:06 -0700
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

"kurian  kattukaren" <kjk_bugs@rediffmail.com> writes:

> Will this do for schedule_timeout().

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.

I'm not certain what the semantics of the Linux schedule_timeout
kernel function are supposed to be, so exactly what the right
implementation is depend on that.

reply via email to

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