On 4/23/07, Thomas De Schampheleire <[EMAIL PROTECTED]> wrote:

- Have a thread run containing a while loop with a delay inside. This would
have the disadvantage that the time between the thread's execution is run is
not always fixed (it would depend on the load of the system, ...).


To some extent, yes. You could use something like lbolt to normalize
this though.

- Schedule a task to run at certain times. How do I achieve this? Which
functions can I use from within the kernel to use the timer?


You could use timeout().

- Are there any other possibilities? Do they have certain
advantages/disadvantages?


You could also look at the interface in cyclic.h. The only problem
with this is that it's not a public interface and so your build env.
would be tied to ON.

 Paul

--
Paul Durrant
http://www.linkedin.com/in/pdurrant
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to