[Haskell-cafe] forkIO preemption

Simon Marlow simonmar at microsoft.com
Tue Jun 15 08:30:42 EDT 2004


On 07 June 2004 22:59, S. Alexander Jacobson wrote:

> When you forkIO and one of the threads blocks
> (e.g. on a socket or a readchan), do execution
> automatically resume on other threads and does the
> blocked thread consume timeslices while it is
> blocked?

In GHC: yes, no.
 
> In other words, is there any performance
> penalty in setting timeslices very large in a
> server app (where all I care about is throughput)?

No.  But there probably isn't much to gain either.

Cheers,
	Simon


More information about the Haskell-Cafe mailing list