On 04/05/2012 23:25, Gautam Bakshi wrote:
> Thanks for the answer Miroslav. This brings up a few other questions to
> me, mainly can I extend the life of a object in pool(these objects
> shouldn't be dying if there is work)? Also, can I somehow specify a
> minimum limit of objects so I can have t
On Sat, May 5, 2012 at 8:25 AM, Gautam Bakshi wrote:
> Thanks for the answer Miroslav. This brings up a few other questions to
> me, mainly can I extend the life of a object in pool(these objects
> shouldn't be dying if there is work)? Also, can I somehow specify a
> minimum limit of objects so
Thanks for the answer Miroslav. This brings up a few other questions to
me, mainly can I extend the life of a object in pool(these objects
shouldn't be dying if there is work)? Also, can I somehow specify a
minimum limit of objects so I can have them match the number of threads I
have(this way if
On Sat, May 5, 2012 at 12:07 AM, Gautam Bakshi wrote:
> Hi Everyone,
>
> I'm trying to pool some objects and share them but I noticed blocking in
> the threads. I'm a bit new to Java so not sure if this is a problem with my
> lack of experience or something specific to pools. Here's some code that
Hi Everyone,
I'm trying to pool some objects and share them but I noticed blocking in
the threads. I'm a bit new to Java so not sure if this is a problem with my
lack of experience or something specific to pools. Here's some code that
replicates the problem(Create 10 threads and share 20 objects,