On Wed, 18 Apr 2001, E.B. Dreger wrote:
> For minimal CPU utilization, it would be nice skip task switching,
> period. Run something to completion, then go on to the next task.
> Poll without ever using an interrupt.
[snip]
> Hence, my philosophy is that task switching and preemption are
> necessary evils because hardware does not perfectly accomodate
> software. If we must, we must... otherwise, use co-op switching as
> the next best thing to straight run-to-completion.
Except that for the [extremely performance critical] interrupt
handlers the "software" is under control of the folks who write
the OS.
You need preemption for userspace because it's possibly "hostile"
software, but things like the interrupt handlers and the kernel
code are under your control ... this means you can code it to be
as efficient as possible without impacting latency too much.
regards,
Rik
--
Virtual memory is like a game you can't win;
However, without VM there's truly nothing to lose...
http://www.surriel.com/
http://www.conectiva.com/ http://distro.conectiva.com.br/
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message