aspose file tools
The moose likes Threads and Synchronization and the fly likes Thread Scheduling (Multiple CPU) Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Threads and Synchronization
Reply Bookmark "Thread Scheduling (Multiple CPU)" Watch "Thread Scheduling (Multiple CPU)" New topic
Author

Thread Scheduling (Multiple CPU)

Armita Bansal
Greenhorn

Joined: Aug 21, 2001
Posts: 8
Can I schedule threads on Multiple CPU. Is it OS Dependant or will atleast my JVM take care of it. (I am using a SUN JVM).
If this is possible, please lemme know how.. or atleast where i can start searching..
Thanks a zillion!!!
-armi.
Peter den Haan
author
Ranch Hand

Joined: Apr 20, 2000
Posts: 3252
Ordinary Java threads will use multiple CPUs in most JVM implementations, provided the JVM uses native threads instead of "green" threads.
- Peter
Armita Bansal
Greenhorn

Joined: Aug 21, 2001
Posts: 8
thanks peter.. but can i force a thread scheduling if i want to specifically want my thread to run on a particular CPU?
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Thread Scheduling (Multiple CPU)
 
Similar Threads
Multiple CPU
K&B Thread chapter: A couple of questions
query about multiple jvm instances on a single cpu machine
Multiprocessor JVM Scalability
JVM - Reducing number of CPUs..