[concurrency-interest] j.u.c/backport performance on Windows
gregg at cytetech.com
Wed Apr 4 10:16:04 EDT 2007
Peter Kovacs wrote:
> The producers take their input from a file. They do a significant
> amount of processing (build a model of a chemical compound from a
> string representation into a Java objects, process the Java objects
> and calculate a number of chemical properties of the molecule).
> Producing the input for the consumer typically takes at least 30-35%
> longer (but often much longer) than the consumer takes processing it.
> Admittedly, the room for concurrency is not huge, but is still
> significant in two-way systems.
Should you enqueue a Future for the object into the queue, and then let the
consumer 'get' the value from there so that it is waiting for exactly the next
More information about the Concurrency-interest