GeeCON Prague 2014*
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
Author

Multi-Processors Influence?

Arno Reper
Ranch Hand

Joined: Mar 14, 2006
Posts: 286
Hi,
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,
arno


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
Hi,

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.
Asha


SCJP 1.5
Arno Reper
Ranch Hand

Joined: Mar 14, 2006
Posts: 286
Hi,
I thought the CPU could schedule the threads on both processors, for example if you have two threads like main and another...one 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.
arno
[ April 10, 2006: Message edited by: Arno Reper ]
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18876
    
  40

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.

Henry


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
 
GeeCON Prague 2014
 
subject: Multi-Processors Influence?