suspend a thread in LKM

Wanghong Yuan (wyuan1@ews.uiuc.edu)
Wed, 1 May 2002 01:41:00 -0500


Hi,

I am currently working a scheduling algorithm, implemented with a LKM. The
basic probelm is to control a thread (user-level) to run for x time units
every y. After x, it should wait until next y.

My current problem is that how can I let the thread wait (sleep) until next
y? I think I should put the thread in a unrunable state, and then enable it
when next y comes. But how?

Thanks alot in advance.

w.h.y

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/