File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

utilize the CPU to the fullest

 
ankur jainmrec
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If a thread is used, even a 12 CPU machine will effectively a single CPU machine, as all the threads of a process run on the same CPU. How do I make a Java process utilize the CPU to the fullest? Can I do some system programming like C language?
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24204
34
Chrome Eclipse IDE Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How threads map onto processors is operating-system and JVM-implementation dependent, but on Intel architectures (both Linux and Windows machines) threads are distributed across all processors -- so your basic thesis is incorrect. If you've got an OS/JVM combination that behaves the way you suggest, then you should look into running on a better platform.
 
Pradeep bhatt
Ranch Hand
Posts: 8927
Firefox Browser Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there any OS where Java doe not make use of multiple processors.
[ November 07, 2003: Message edited by: Pradeep Bhat ]
 
ankur jainmrec
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you for the answer
and sorry for the cross posting in test forum, i did it mistakenly
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic