Wolfgang Thaller <[EMAIL PROTECTED]> writes:

>> Since the main thread is bound, and unbound threads are never executed
>> on an OS thread which has some Haskell thread bound, this would imply
>> that when the main thread spawns a Haskell thread and they synchronize
>> a lot with each other using MVars, the synchronization needs OS-thread
>> synchronization - the threads will not execute on a the same OS thread.
>
> Correct.

Is it important which thread executes Haskell code (I bet no) and
unsafe foreign calls (I don't know)? If not, couldn't the same OS
thread execute code of both threads until a safe foreign call is made?

-- 
   __("<         Marcin Kowalczyk
   \__/       [EMAIL PROTECTED]
    ^^     http://qrnik.knm.org.pl/~qrczak/
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to