osdir.com

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Thread-safety of buffer allocators in Java


Hey folks,

I am studying a bit of the buffer allocators code in the Java library. From
my understanding of the code, the buffer allocators are thread safe. i.e.,
you can use the same buffer allocator to multiple threads, as well as
creating child allocators from the same allocator and use them in different
threads.

Is my understanding correct? I also get this question from other users so I
think it will be helpful to put that in the doc as well.

Thanks,
Li