Is there a delay which yields?

Julian Elischer julian at elischer.org
Sun Mar 15 10:17:22 PDT 2009


Barney Cordoba wrote:
> I'd expect DELAY to yield till timeout but a task with a delay loop just
> runs to 100% usage. Is there a function which can yield exectution for
> a set amount of time (without having to use a timer)?

DELAY is designe for use early in the boot when thre are no timers.
it is only occasionally used for cases during normal operation.

how would a thread know how long it has been away if no timer is used?

> 
> Barney
> 
> 
>       
> _______________________________________________
> freebsd-current at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe at freebsd.org"



More information about the freebsd-current mailing list