The actor model is by no means new; it's been around for quite some time.
角色模型并不是一个新概念,它已经存在很长时间了。
GPars implements the actor model using many of the concepts from Erlang and Scala.
GPars使用来自Erlang和Scala的许多概念实现actor模型。
This model is based on message passing, and is somewhat similar to the actor model used in Erlang and Scala.
这个模型建立在消息传递的基础上,并且与Erlang和Scala中的actor模型有点类似。
The actor model (and thus Kilim) makes it easier and safer to write asynchronous-acting objects that depend on similar objects.
角色模型(以及后来的Kilim)使编写依赖于类似对象的异步操作对象变得更加简单和安全。
As such, actors are much safer (locks and synchronization aren't necessary) and the actor model itself handles coordination issues.
因此,角色更加安全(不需要锁和同步),角色模型本身能够处理协调问题。
The actor model facilitates concurrent programming by allowing a safer mechanism for message-passing between processes (or actors).
角色模型支持采用一种更安全的机制来在进程(或角色)之间进行消息传递,极大地方便了并发编程。
Processes are similar in some ways to the actor model already discussed and channels share many similarities with dataflow streams.
进程在某些方面与前面讨论的actor模型类似,而通道与数据流有很多相似之处。
As you can see from Listing 2, the DeferredDivision class extends from Kilim's Task type, which essentially emulates the actor model.
从清单2可以看到,deferreddivision类扩展了Kilim的task类型,后者实际上模仿了角色模型。
Rather than threads interacting via Shared memory with locks, the actor model leverages "actors" that pass asynchronous messages using mailboxes.
与通过共享内存与锁交互的线程不同,角色模型利用了“角色”概念,使用邮箱来传递异步消息。
There are no locks and synchronized blocks in the actor model, so the issues that arise from them — like deadlocks and the nefarious lost-update problem — aren't a problem.
角色模型中没有锁和同步块,所以不会出现由它们引发的问题,比如死锁、严重的丢失更新问题。
Far from looking old and frail, the silver-haired actor, model and artist wore a crisp white shirt and black jeans, his back straight and his eyes glittering with humor.
这个银发的演员、模特和艺术家身穿一件洁净干练的白衬衫和一条黑色牛仔裤,他的背很直,眼睛闪烁着幽默。
Far from looking old and frail, the silver-haired actor, model and artist wore a crisp white shirt and black jeans, his back straight and his eyes glittering with humor.
这个银发的演员、模特和艺术家身穿一件洁净干练的白衬衫和一条黑色牛仔裤,他的背很直,眼睛闪烁着幽默。
应用推荐