• 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

thread

 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
can any one tell me ,when java is platform independent?how thread is os dependent?
thanks in advance
 
Ranch Hand
Posts: 621
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ok,i dont have much information on this but the below shown links may help you to understand,when java acts as platform independent,try to read the first link till the end,may be this will clear your concept.Both the articles are useful.
1)http://java.sun.com/docs/books/tutorial/getStarted/intro/definition.html
2)http://www.artima.com/insidejvm/ed2/platindep3.html

now about the thread being os dependent the link shown below will help you atleast to some extent to understand the concept.may be it proves beneficial to you.

http://books.google.co.in/books?id=YvABpMAYoBoC&pg=PA7&ots=Hh7wFQJ6z4&dq=Thread+is+operating+system+dependent&sig=MWS6vwgFlSQPPqhITnBkhPFc0W4
 
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

Originally posted by vijay joseph:
can any one tell me ,when java is platform independent?how thread is os dependent?
thanks in advance



This is true for many parts in Java. The "platform independent" moniker just means that you need to only compile once, and it will run anywhere.

But how it run does have some subtle differences. In the case of threading, the fine details of schedulling is passed to the underlying os. This is why you should never assume an order of execution, or who gets a syncrhonization lock, or a type of schedulling, in your Java application.

Henry
 
All that thinking. Doesn't it hurt? What do you think about this tiny ad?
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic