[plt-scheme] threads and mzscheme
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