[plt-scheme] threads and mzscheme

From: Hans Oesterholt-Dijkema (hdnews at gawab.com)
Date: Mon May 23 15:00:12 EDT 2005

Hans Oesterholt-Dijkema schreef:

>  For list-related administrative tasks:
>  http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>
> Matthew Flatt schreef:
>
>> Threads are essentially continuation-based. There's just one system
>> thread, and MzScheme has its own scheduler (hierarchical, round-robin)
>> to swap Scheme continuations/threads.
>>  
>>
> This is probably where the pain is! I'm making a call to C for the 
> database connection, which
> will probably block the mzscheme threading system! I'll probably want 
> to make the database
> call asynchronous and wait on a semaphore in mzscheme for the database 
> to return with a
> result ( I'll need to change sqli :(( ).
>
;-) Why aren't you using posix threads or windows threads to implement 
threading ?

Best whishes,

Hans Oesterholt



Posted on the users mailing list.