Limits of number of Locks/Monitors (a.k.a. java.lang.Object)
From: Meh-Lit Kim (mehlitkim_at_yahoo.com)
Date: 10/08/03
- Next message: Ben Wan: "create push(Object obj) using stack?"
- Previous message: Jova: "Re: Help Please"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 7 Oct 2003 15:01:26 -0700
Hi all,
I know that under Unix/Linux, there is a max number synchronization
objects (semaphores etc.) that one can create.
I assume that likewise, there is a max number of mutexes and
conditional vars that one can create under 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 objects given enough
memory.
Given the above, it seems that in the JVM, I can easily create more
synchronization objects than the underlying threading environment can
support.
Is this true? And if so, how does Java/JVM manage to accomplish this ?
Please, someone drop me a clue!
Thanks,
/Meh
- Next message: Ben Wan: "create push(Object obj) using stack?"
- Previous message: Jova: "Re: Help Please"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]