File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Multi-Processors Influence? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Multi-Processors Influence?" Watch "Multi-Processors Influence?" New topic

Multi-Processors Influence?

Arno Reper
Ranch Hand

Joined: Mar 14, 2006
Posts: 286
i was asking me what will be the influence of multi-processors like the Core Duo or PPC Quad ( and others ) on whats guaranteed or not about multithreading. What are you thinking about ranchers?

thanks for your comments,

The man who makes no mistakes does not usually make anything<br /> <br />>>> SCJP 5.0 >> SCJD B&S <<< In progress
Asha Pathik
Ranch Hand

Joined: Feb 08, 2006
Posts: 143

I think the idea of multiprocessor is that we can have many more programs(different applications) running at the same time than on any single-processor systems.In that case we might be able to run multiple Java applications more efficiently than on any other single-processor multi-threaded machine. But as far as the how a single program running on a single alloted processor is concerned we might not see much a difference.

Plz correct me if I am wrong.

SCJP 1.5
Arno Reper
Ranch Hand

Joined: Mar 14, 2006
Posts: 286
I thought the CPU could schedule the threads on both processors, for example if you have two threads like main and on each, if its well programmed you could be sure what the output ll be? or not? I amn't an processor ingenieur so...
I know that some programms can fully use multi-processor, but the most use only one and the other proc is waiting or doing something else.
[ April 10, 2006: Message edited by: Arno Reper ]
Henry Wong

Joined: Sep 28, 2004
Posts: 20521

Most JVMs have been able to use all the processors on the machine for a long time now... ever since the switch over to native threads.

And while "dual-cores" may be new, multiprocessor machines have been around for a long time too -- even for Windows.

Basically, different threads can be scheduled on different processors.


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
I agree. Here's the link:
subject: Multi-Processors Influence?
It's not a secret anymore!