-----------------------------
Please read the FAQ!
<http://java.apache.org/faq/>
-----------------------------
Noah Nordrum wrote:
> -----------------------------
> Please read the FAQ!
> <http://java.apache.org/faq/>
> -----------------------------
>
> Is there a way you can "tie" a jvm to a processor in a SMP machine, since
> the current jvm will only use one processor(or that is how I'm reading it)?
> That way you could have 2 jvm's running(1 per processor), use both
> processors, and have a small level of fallover.
>
Assume you have a dual-processor SMP box. If you have a single JVM that runs
green threads, it can use only one processor at a time, but it will use both
processors if the JVM runs native threads (Blackdown's 1.2-pre-v2 gives you
the choice; IBM's JVM is native threads). Locking the JVM to one processor in
this case would not be a good idea.
If you are running a dual processor SMP box with two green-threads JVMs, they
will each naturally use a processor apiece (assuming there are no higher
priority processes ready to run, and that your load balancing between them is
doing what you want), without locking a JVM to a processor.
Unless you *really* know what you are doing, OS's can generally do a better
job of resource allocation than you can, so you're better off not messing with
it.
>
> Noah Nordrum
> Carpe Diem. A fish a day keeps the doctor away.
>
Craig McClanahan
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]