• 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

64 bit and 32 bit ?

 
Ranch Hand
Posts: 399
2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I have a doubt regarding what are the basic considerations which need to be taken while pogramming for a 32 bit or a 64 bit OS.

Also when there are multiple processors in the computer, is it same as multithreaded programming ? To refrase, how does java programming differ while programming for a multiprocessor system.

Thank you.

Best Regards
Ayub.
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Java abstracts away the 32bit/64bit differences, just like it abstracts away the number of CPUs. You don't need to code any differently to get a working program. Advanced JVMs might take advantage of multiple CPUs by scheduling different threads on different CPUs, but I'm not aware of an existing JVM that does this.

Multiprocessing is a different concept than multithreading. You can have multi-threaded systems on a single-processor machine.
[ January 05, 2007: Message edited by: Ulf Dittmer ]
 
author
Posts: 23951
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Advanced JVMs might take advantage of multiple CPUs by scheduling different threads on different CPUs, but I'm not aware of an existing JVM that does this.



Actually, most modern JVMs does this. This was a *freebie* that was obtained when JVMs switch the thread model to use the native threading of the Operating System. And most modern OSes, will run multiple threads across different CPUs.

Henry
[ January 05, 2007: Message edited by: Henry Wong ]
 
Ayub ali khan
Ranch Hand
Posts: 399
2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you Ulf and Henry !!

The explanation was straight forward.

Can any one point me to a good article or give a brief overview of what happens when a Multithreaded program is executed on a multi processor system ? I am interested to know how the JVM takes advantage of the thread scheduling capability of the OS.


Thanks and Best Regards
Ayub.
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic