|
Re: Other Programmers and Shared-Memory Concurrency
|
Posted: Sep 20, 2007 5:35 AM
|
|
> > I haven't read the whole thread from the start, but why > > not use the Actor model fully? i.e. every object in the > > language should be a different thread, and invocation of > a > > method should be a computational job posted to the job > > queue of an object's thread. Condition variables should > be > > automatically inserted when waiting for a result to be > > available. > > Can we share data between threads in the Actors model? I > think the model is not designed for that, but I'm not > sure. Anyway, it looks like this would be a similar > approach taken in Erlang with message-passing concurrency, > but I don't think it would be a good idea to prefer one > concurrency model over others for a general-purpose > language.
Certainly. Data can be freely shared in the Actor model, because each actor is a separate thread.
|
|