On Thu, 26 Aug 1999, Danny Ayers wrote:
> Hi,
> I was wondering if anyone had knowledge/experience with writing for a
> dual-processor setup - supposing a single Java app is multithreaded,
> will the JVM make use of SMP and boost performance? Alternatively, if
> you have two separate servlets (which could communicate with each
> other), would this get the benefit of SMP?
Well, I do have a SMP system and a multithreaded Java application (I
thought even the simple AWT is multithreaded, so every app using the AWT
might be too). You can increse performance by using the -native flag to
force the VM to use native threads, which then will be distributed on the
two processors. The only problem - as I experienced it - is that native
threads are not very stable so once in a while my java process crashes ...
Maybe I will try a more simple application using just two threads doing
some number-crunching .. but that will be in the near future.
Magnus
--
Magnus Niemann [EMAIL PROTECTED]
Wissenschaftlicher Mitarbeiter
Fachgebiet Formale Modelle, Fachbereich 13 (Informatik)
Logik und Programmierung Technische Universitaet Berlin
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]