[racket] Concurrent execution
>> - 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?
Thanks,
Peter Ivanyi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20111006/a164f81b/attachment.html>