Questions tagged [gpars]

The GPars project offers developers new intuitive and safe ways to handle Java or Groovy tasks concurrently, asynchronously, and distributed by utilizing the power of the Java platform and the flexibility of the Groovy language.

The GPars project is a concurrency framework for Groovy and Java. It provides the following abstraction layers over traditional multi-threading / parallel programming

  • Concurrent collection processing
  • Asynchronous operations
  • Fork/Join abstraction
  • Actor programming model
  • Dataflow concurrency constructs
  • Agent - an thread-safe reference to mutable state
114 questions
0
votes
2 answers

Groovy - GPars - Active Object - Active Method which returns a value

In Groovy, I need to implement an ActiveObject instance called MyCounter so that the following code would pass: final MyCounter counter = new MyCounter() counter.incrementBy 10 counter.incrementBy 20 counter.update 'Hello' assert 35 ==…
Dušan Rychnovský
  • 11,699
  • 8
  • 41
  • 65
0
votes
1 answer

GPARs async functions and passing references that are being updated by another thread

I am using GPARs asynchronous functions to fire off a process as each line in a file is parsed. I am seeing some strange behavior that makes me wonder if I have an issue with thread safety. Let's say I have a current object that is being loaded up…
user1373467
  • 315
  • 3
  • 12
0
votes
1 answer

How to about Gpars runForkJoin and forkOffChild methods

I'm trying to work with these methods with no success and i`ll be happy if someone can help me. I'm using groovy and i have 2 maps of strings. I want to match between the strings of the 2 maps with threads (using by gpars) For example : def firstMap…
ork
  • 209
  • 3
  • 9
  • 17
0
votes
1 answer

Does GPars actors model uses user thread or native OS threads

I know when there is no message to process an actor does not consume thread and attaches itself to a thread only when message arrives. However my question is when an actors is attached to a thread what kind of thread it is - user thread or native OS…
Gagan Agrawal
  • 139
  • 1
  • 9
0
votes
1 answer

GPars Process the huge list doing the fix size parallelisation on its portions

I'm looking for the GPars functionality which allows to separate the big task in sequencially executed portions of parallized subtasks sets. i.e. iterating the Array size of K, doing the sequencial assignments of parallel tasks blocks each having…
-1
votes
1 answer

gpars to create parallel jobs in pipeline plugin for jenkins

My environment is Tibco, where I have 200 to 300 services. My design needs to trigger the 'stop' command to all these services parallely. Please provide some insight as to how I deal(code) the threading mechanism within Gpars. Examples will help.
DevOps Junky
  • 287
  • 1
  • 5
  • 22
-1
votes
1 answer

what is the difference between GParsPool.withPool and GParsPool.withExistingPool?

what is the difference between GParsPool.withPool and GParsPool.withExistingPool? I didnot understand what was explained in the documentation.
-1
votes
1 answer

Grails CSV Plugin - Concurrency

I am using the plugin: Grails CSV Plugin in my application with Grails 2.5.3. I need to implement the concurrency functionality with for example: GPars, but I don't know how I can do it. Now, the configuration is sequential processing. Example of my…
-3
votes
1 answer

Open-Dolphin status at August 24 2015

What is the status of this library at August 24, 2015? The web page has some months without moves.
Marlord
  • 1,144
  • 2
  • 13
  • 24
1 2 3 4 5 6 7
8