[racket] Concurrent execution

From: Ivanyi Peter (pivanyi at freemail.hu)
Date: Thu Oct 6 00:33:53 EDT 2011

>> - If the original list to be processed is very long, then the construction of >> the second phase list shouldn't wait for bottle neck items to cons the list >> elsewhere where possible. The speed gain wouldn't be substantial though, >> since it is just building a list, and you cannot finish it until the last >> item is available, anyway.>>You'd want to basically make the result list into a queue in which>elements are inserted.Hi All,According to the documentation:"(require data/queue)
This module provides a simple mutable queue representation, first-in/first-out only. Operations on queues mutate it in a thread-unsafe way.

So this is not thread-safe. Is it futures safe?
Is there any queue implementation which is thread-safe?
Peter Ivanyi

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20111006/a164f81b/attachment.html>

Posted on the users mailing list.