suspend a thread in LKM

Wanghong Yuan
2002-05-01T06:41:02Z

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