Discussion Locked

Implementation of Threads

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
How are threads implemented by unix os and winnt os for java programming.

5 replies

by vandlep

Java threads use the underlying O/S. Java 1.x provides "green threads" on Solaris Unix - a running thread remains running until a thread of higher priority pre-empts its. WinNT gives each thread a time slice; when that slice is over another thread is given the opportunity to run. Current releases of Java on Solaris can be configured to allow use of native Solaris threads, which also perform time-slicing instead of priority-only "green threading".

This discussion is closed to new replies.