This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

error in thread class  RSS feed

 
mu gaandimara
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Why the above code shows error ???/
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should never call a thread's "run" method; "start" will cause the new thread to be started and run.
 
Maruthi Janardhan
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What error? Can you be specific? What I can see is that you are implementing Thread class. You should be extending Thread class. Otherwise there is nothing wrong with the code.
 
Henry Wong
author
Sheriff
Posts: 22847
119
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maruthi Janardhan wrote:What error? Can you be specific? What I can see is that you are implementing Thread class. You should be extending Thread class. Otherwise there is nothing wrong with the code.


Isn't this enough to cause a compile error?

Henry
 
Maruthi Janardhan
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Henry Wong wrote:
Isn't this enough to cause a compile error?

Henry

True, but I thought rebeus is seeing some thing else. Was there a post on the forum to get help on a compiler error!!!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!