[plt-scheme] Thread synchronization for dummies
> d reference material for PLT Scheme's concurrency operations here:
>
> http://docs.plt-scheme.org/reference/concurrency.
>
Yep, I've seen this.
> What I would suggest for your operation is spawning a dedicated thread
> to handle FOO requests. Whenever FOO gets called, it should send a
> message to that thread, then block to wait for a response. That
> thread should wait for requests, and for each one should handle the
> request and send a response before waiting for the next request. This
> will guarantee each request will be handled in order and will not
> overlap.
>
> Look at the documentation for creating threads (for your request
> thread) and on channels (for sending, waiting for, and receiving
> requests/responses).
That sounds awfully complicated and I was hoping there was an easier
solution. Anyway, thanks for the advice and I'll dig some more into
the world of threads/semaphore/mutexes and whatever else there is.
--Erich