It seems that no one has gotten back to you about your question, most
probably because there isn't a good answer.

The main Dict class in Julia isn't built for concurrent programming.  Until
v0.5 (about to be released), Julia only had multi-process parallelism with
message passing and shared memory between processes, and it would have been
quite cumbersome to write a dictionary class that took advantage of this
(though it would be possible).

As of v0.5, Julia has nominal multi-threading (so that different threads
share the same memory space), but AFAIK, no one has developed any native
collection classes which can be safely used (i.e., with locking) with
this.  Hopefully, that will happen sometime in the future.

Cheers,
   Kevin

On Sun, Jul 31, 2016 at 10:45 AM, Uriel Carrasquilla <
[email protected]> wrote:

> I have a dictionary from which I read a value based on a key, do some
> processing, and then update.  Now I need to parallel multiple processes
> that will need to update the dictionary.  How can I lock or serialize the
> updates?  Something similar to MySQL select for update ... Update sequence.

Reply via email to