• Post Reply Bookmark Topic Watch Topic
  • New Topic

64 bit and 32 bit ?  RSS feed

 
Ranch Hand
Posts: 395
2
  • Mark post as helpful
  • send pies
  • 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: 42972
73
  • Mark post as helpful
  • send pies
  • 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
Sheriff
Posts: 23295
125
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • 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: 395
2
  • Mark post as helpful
  • send pies
  • 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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!