GPars implements much of the agent functionality found in Clojure.
GPars实现Clojure中的很多agent功能。
Actors in GPars are lightweight processes that consume messages from a mailbox.
GPars中的Actors是从邮箱中使用消息的轻量级进程。
GPars implements the actor model using many of the concepts from Erlang and Scala.
GPars使用来自Erlang和Scala的许多概念实现actor模型。
GPars does not yet include an implementation of STM, but it likely will in the future.
然而,GPars不包括STM的实现,但是将来有可能会包括。
Agents are an important feature in Clojure and it's nice to see them show up in GPars.
Agents是Clojure中的一个重要特性,很高兴可以看到它们出现在GPars中。
We've already explored the mechanics of how to push tasks into an Executor pool with GPars.
我们已经探究了如何使用GPars将任务推入Executor池的机理。
GPars provides nice implementations of all the key actor features plus some additional ones.
GPars很好地实现了所有关键actor功能以及一些额外功能。
The three approaches I'll demonstrate are actors, agents, and dataflow variables, all of which are supported by GPars.
我将要展示的三种方法是actors、agents和数据流变量,它们均受GPars支持。
Additionally, GPars extends collections inside a GParsPool block, giving us additional parallel methods built on the primitives.
另外,GPars在一个GParsPool块内扩展集合,为我们提供构建于原语之上的其他并行方法。
The GPars Executors DSL makes it easy to transform the program in Listing 1 from serial processing to parallel processing, as shown in Listing 2
GParsExecutorsDSL使得我们更容易将清单1中的程序从串行处理转换为并行处理,如清单 2 所示
The GPars Executors DSL makes it easy to transform the program in Listing 1 from serial processing to parallel processing, as shown in Listing 2
GParsExecutorsDSL使得我们更容易将清单1中的程序从串行处理转换为并行处理,如清单 2 所示
应用推荐