[plt-scheme] Efficient asynchronous communication primitives [PATCH]

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Mon Mar 17 10:42:10 EDT 2008

At Mon, 17 Mar 2008 10:12:14 -0400 (EDT), Dimitris Vyzovitis wrote:
> On Mon, 17 Mar 2008, Matthew Flatt wrote:
> > But is there a reason to have a thread-specific mailbox, as opposed to
> > a built-in asynch channels (which I imagine would have similar
> > performance to the build-in thread mailboxes)?
> >
> 
> Yes:
> 1) you don't have to synchronize access to the mailbox, so the primitives
>    are simpler (and more efficient)
> 2) threads are now effectively actors, so you don't need a separate
>    protocol for finding the channel attached to a thread
> 
> async-channels can then be implemented using a separate thread, similar to
> the current async-channel implementation.

Ok. I expect to apply the patch later today.

Matthew



Posted on the users mailing list.