This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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: 24183

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]
It is sorta covered in the JavaRanch Style Guide.
subject: Thread and Object
Similar Threads mock exam
are Home object and EJB object multi-thread?
Is a dead thread a threat to memory leak?
For an object to be a target for a Thread, that object must be of type: