aspose file tools*
The moose likes Beginning Java and the fly likes Working of Threads in java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Working of Threads in java" Watch "Working of Threads in java" New topic
Author

Working of Threads in java

swati aole
Greenhorn

Joined: May 02, 2009
Posts: 9
hi all,

It's just a simple query about the implementation mechanism of java. I want to know how Threads work in java. I mean it's just a class like other classes and implements Runnable but we can define any such class with run and start methods but it won't work like Thread class. Are there any language specifications used to identify it as a special class. If yes, please tell me how they are implemented, via compiler, interpreter or JVM?? which one recognizes and differs special classes.

thanks in advance.

Regards
Swati
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

There isn't anything in the Java language which treats the Thread class differently than any other class.

It's certainly true that there is native code in the Java runtime which makes Threads behave the way that they do, but that's true of a lot of other classes. For example java.io.File will have native code which allows the runtime to work with files. There's really nothing special about the Thread class.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Working of Threads in java