Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

java thread?  RSS feed

 
Alan Hermin
Ranch Hand
Posts: 290
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all....
there are many things in the java thread that is not guaranteed depending on the scheduler and OS...therefor can we say : The Java Thread is Platform-dependent?
if yes..is this dependency is mistake in the java language....

AND i want the best book that discuss java threads in more detail .......
thanks...
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24215
37
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are lots of other things that are "platform dependent" in the same way: a program will run at a different speed on different machines; the size of a font will vary; the number of colors available on the graphics card will vary. Such is the nature of the beast.

The best book on Java threads is Henry's.
 
Ken Blair
Ranch Hand
Posts: 1078
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by ali tareq:
Hi all....
there are many things in the java thread that is not guaranteed depending on the scheduler and OS...therefor can we say : The Java Thread is Platform-dependent?
if yes..is this dependency is mistake in the java language....

AND i want the best book that discuss java threads in more detail .......
thanks...


Only if you rely on the platform-dependent aspects. I think developers can create multithreaded applications that are as platform-indepedent as single threaded applications. Java does a pretty good job of isolating the average developer from things like the scheduler and OS.

I agree with Ernest's recommendation for Henry's book. It's very good, the best that I know of though I admit I have not read many books on concurrency.
 
Bo Gambles
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since this thread is almost similar to what I was going to ask, I'll just post in here

Give an example of another high level programming OOP language that does not have Threads or the multitasking equivalent?


I've been checking out a few other languages and they all seem to have multithreading. I searched, all the C's, .net, BASIC, VB, perl and python. But they all seem to have threading. Any help. Thanks
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24215
37
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Many of these actually don't have multithreading as a language feature, as it is in Java. Instead, threads are implemented in a standard or nonstandard library; there may be alternate implementations for a given language. This is certainly true for Perl, C, and BASIC, using the last two to refer to standardized or vendor-independent versions, although a particular vendor (read Microsoft) may have gone beyond that.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!