• Post Reply Bookmark Topic Watch Topic
  • New Topic

Native versus Greed  RSS feed

 
Adrian Yan
Ranch Hand
Posts: 688
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the weblogic documentation, it says "Always run WebLogic Server using native thread". Can someone elaborate on this? And how can I make it to run on native thread?
 
George Brown
Ranch Hand
Posts: 919
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's about the Java threading model, of which I am aware of two types : green threads and native threads. Native threads are much more extensible than green threads.
In a previous version of the OS, only green threads were supported, and so we used them. The difference is as follows: green threads allow the creation of multiple threads in a user's environment. However, the user threads in a single process can not run on two processors at the same time. In the green threading model the threads within a user process are treated as a single process by the OS. Native threads (aka kernel threads) on the other hand can be scheduled to run independently which will result in multiple threads running in parallel on multiple processors. Consequently, you see them running separately in a process listing whereas you would only see the single process with green threads.
On HP-UX, the Java native threading setup is taken care of by putting the appropriate paths in the $SHLIB_PATH environment variable. Then setting the THREADS_FLAG environment variable to "native" or passing the -native option to the java, jdb, javac or javap commands forces the use of the kernel-threaded JVM.
I hope that helps.
[This message has been edited by George Brown (edited December 15, 2000).]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!