concurrent-ruby icon indicating copy to clipboard operation
concurrent-ruby copied to clipboard

Java and Ruby thread do enqueue/create-threads differently

Open pitr-ch opened this issue 6 years ago • 1 comments

Ruby pools create threads first before putting work to queue, java threads put work first into queue until full then they create new threads.

This needs to be unified. We also need to implement java.util.concurrent.SynchronousQueue for Ruby and provide option for its usage on Ruby and Java.

pitr-ch avatar May 30 '18 13:05 pitr-ch

We probably need to take code from http://gee.cs.oswego.edu/cgi-bin/viewcvs.cgi/jsr166/src/jdk8/java/util/concurrent/ThreadPoolExecutor.java?view=markup and modify it to match our needs.

pitr-ch avatar Jul 07 '18 21:07 pitr-ch