M
Meh-Lit Kim
Hi all,
I know that under Unix/Linux, there is a max number of
synchronization objects (e.g. semaphores etc.) that one
can create.
I assume that likewise, there is a max number of mutexes
and conditional vars that one can create in a threading
environment such as when using Pthreads under Solaris.
Now, each java Object provides the Monitor functionality,
and I can easily create several thousand java.lang.Object(s)
in the JVM given sufficient memory.
Given the above, it seems that I can easily create more
synchronization objects (java objects) than the underlying
threading system supports in Java/JVM.
Is this true ? If so, how does Java/JVM manage to accomplish this ?
Please, someone drop me a clue!
Thanks,
/Meh
I know that under Unix/Linux, there is a max number of
synchronization objects (e.g. semaphores etc.) that one
can create.
I assume that likewise, there is a max number of mutexes
and conditional vars that one can create in a threading
environment such as when using Pthreads under Solaris.
Now, each java Object provides the Monitor functionality,
and I can easily create several thousand java.lang.Object(s)
in the JVM given sufficient memory.
Given the above, it seems that I can easily create more
synchronization objects (java objects) than the underlying
threading system supports in Java/JVM.
Is this true ? If so, how does Java/JVM manage to accomplish this ?
Please, someone drop me a clue!
Thanks,
/Meh