This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Thread Scheduling (Multiple CPU)

 
Armita Bansal
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks peter.. but can i force a thread scheduling if i want to specifically want my thread to run on a particular CPU?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic