• 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
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Himai Minh

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: 43028
76
  • 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: 23928
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.
 
So you made a portal in time and started grabbing people. This tiny ad thinks that's rude:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic