next up previous
Next: shell script Up: Threads Previous: Linx threads

Java threads

How jvm implement its threads is totally depent on the JVM implemenation. Here we just study the most popular JVM: Sun hotspot JVM. The Java HotSpo virtual machine currently associates each Java thread with a unique native thread. The relationship between the Java thread and the native thread is stable and persists for the lifetime of the Java thread. Hotspot JVM bounds every java thread with a Solaris libthreads in a one-on-one model, which in turn bound with the LWP in the one-on-one or M-ON-N models. Wether it LWP bounding is 1-on-1 or M-on-N is depent on the Solaris OS version and JVM version. (That is Solaris 9 is using 1-1, and Solaris 8 is using M-N)

see the detail here and and here



Wei Lu 2007-11-06