| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
bsd5tu1 wrote:
Thanks for all the responses everyone. Quite helpful.
Here are some more questions I've thought of about using a multi-procesing machine with Java:
1. When a thread gets assigned to a given processor, is it tied to that
processor until it's death, or does the Kernel and/or JVM have the
ability to re-assign the thread to the other processor while it's
active? For example, suppose I write a Java application with 10 threads,
and all of a sudden one of them starts throwing a ton of work to
something like the event dispatching thread. Assuming the EDT would be
tied to a processor, could the kernel or JVM switch some (or all) of the
other threads to the other processor while active.
2. Is there a relatively easy way to monitor which thread is on which processor?
Not that I know of.
1. We're working on a Java project that makes extensive use of threads,
thread control, etc. We're using OS X, several Linux versions, and
numerous Windows variants for development and testing. Everything looks
good so far, but we haven't, at least to the best of my knowledge,
tested the product against machines using 2 (or more)
processors...probably because they cost so much. We also have tested
our products against machines with varying CPU speeds (for OS X, 400M
PPC up to the latest, FWIW, but it's all single processor, unless you
want to call the dual core Intels "dual processor"...and I really don't
know if that comparison is fair). The question is quite simple: Could
running the program on a dual (or quad) machine expose problems that
weren't transparent under a single processing machine, or does the JVM
see these mutliple processors as a single entity and control the threads
accordingly? THE MORE I THINK ABOUT THIS ISSUE, THE MORE IT FRIGHTENS ME!!!
2. With Apple making the move to Intel, how long will Java for PPC
machines, dual or single processor, even be supported? Since Java SEEMS
to be tied to OS releases, is there a detailed map of what will and
won't be supported in the future as well as a timeline? I've heard that
Apple's transition from 68000 based machines to PPC machines wasn't
exactly "friendly"....meaning that if you used an old 68000 based
machine within a year or two you were pretty much stuck with old
releases and updates, with your only option being to get a new machine.
This, of course, begs the question, is buying a PPC machine, regardless
of it's price, dual processor or not, even worth doing?
3. I have to assume that PPC dual processor machines will be replaced by
Intel based equivalents. Is there a timeline for this anywhere?
_______________________________________________ Do not post admin requests to the list. They will be ignored. Java-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/java-dev/email@hidden
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.