This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Multithreading

 
Mathews P Srampikal
Ranch Hand
Posts: 211
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the difference between implementing runnable interface and Extending a Thread in Multithreading.what are the advantages and disadvantages.
Thanks,
Mathews.
 
Nilesh Srivastava
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When u r extending a Thread u wont be able to extend any other class.
This is the biggest drawback with extending the Thread, what I feel.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic