• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

utilize the CPU to the fullest

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
author and iconoclast
Posts: 24207
46
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 8945
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thank you for the answer
and sorry for the cross posting in test forum, i did it mistakenly
 
reply
    Bookmark Topic Watch Topic
  • New Topic