File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Threads and Synchronization and the fly likes Thread and Object Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Threads and Synchronization
Reply locked New topic

Thread and Object


Joined: Jun 02, 2004
Posts: 9
Is a thread an object or an Object a thread?

Thanks and Regards,<br />Badri
Yaroslav Chinskiy
Ranch Hand

Joined: Jan 09, 2001
Posts: 147

Based on OO rules

Since Object is the super class of Thread then Thread is an Object.
Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24166

badrinarayanan --

You've been warned at least three times about our naming policy; I'm afraid I'm going to have to lock your account now. If you want to change your display name and have your account unlocked, you can make the change here, then send me email or a private message asking to be reinstated. Please include your member number (74215) when you write.

[Jess in Action][AskingGoodQuestions]
I agree. Here's the link:
subject: Thread and Object
Similar Threads
are Home object and EJB object multi-thread?
Threads mock exam
For an object to be a target for a Thread, that object must be of type:
Is a dead thread a threat to memory leak?