Hi,

> context-switches happen only on specific events, which every
> thread will usually engage in, although it need not always do so:
>
> 1 only calls to yield
> 2 any calls to concurrency library api
> 3 any allocation

The Yhc concurrency switches every n instructions, and therefore even
an "evil" thread cannot lock up the system.

Of course, even with fully pre-emptive scheduling, you've still got deadlocks...

Thanks

Neil
_______________________________________________
Haskell-prime mailing list
[email protected]
http://haskell.org/mailman/listinfo/haskell-prime

Reply via email to