Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
  • 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
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • 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: 43027
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: 23919
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.
 
You can't expect to wield supreme executive power just because
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic