On Wed, Jan 19, 2000 at 02:36:30PM -0500, Daniel Stux wrote:
> Here is what I see with Linux. I am running on a freshly installed RedHat
> 6.1 machine. With either JDK, running in native threads is absolutely
> crippling. There seems to be a serparate JDK process ID for each running
> thread, or otherwise something is casuing it to fork 15 times. Of these
> threads four or five of them just hammer the CPU, leaving the whole
> machine at a crawl. Actual performance of our Java GUI isn't too bad, but
> it's no where near where it should be.
The thred model of Linux is a little different than other OSs and each
thread is assigned a PID. The thread itself runs in the same address
space of the parent process but it's reported in the way you saw by
tools like ps.
> Switch to green threads. With Sun's JDK it's like lightning. Processor
> utilization is practically nill, and the GUI is extremely responsive.
The Sun/Inprise JDK is not cerified for native threads, the green
threads implementation has been tested for performance so the result
you obtain is the expected behavior.
--
Paolo Ciccone
JBuilder dev.team
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]