GPars (Groovy Parallel Systems) brings a wide variety of high-level concurrency concepts, such as actors, parallel collections, agents, dataflow concurrency and other to Groovy developers. Leveraging the enormous flexibility of the Groovy programming language and building on proven Java
... [More] technologies, we aim to make concurrent programming for multi-core hardware intuitive, robust and enjoyable. [Less]
A straightforward implementation of the Agent concurrency model for Scala, inspired by agents in Clojure.
Essentially, an agent wraps a shared mutable state and hides it behind a message-passing interface.
Agents accept messages and process them on behalf of the wrapped state. Typically agents
... [More] accept functions / commands as messages and ensure the submitted commands are executed against the internal agent's state in a thread-safe manner (sequentially). The submitted functions / commands take the internal state as a parameter and their output becomes the new internal state value.
The code that is submitted to an agent doesn't need to pay attention to threading or synchronization, the agent will provide such guarantees by itself. [Less]
This site uses cookies to give you the best possible experience.
By using the site, you consent to our use of cookies.
For more information, please see our
Privacy Policy