Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Threads and Synchronization and the fly likes Thread, Runnable interface, simple question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Threads and Synchronization
Bookmark "Thread, Runnable interface, simple question" Watch "Thread, Runnable interface, simple question" New topic
Author

Thread, Runnable interface, simple question

abalfazl hossein
Ranch Hand

Joined: Sep 06, 2007
Posts: 635



I want to rewrite this code by interface ( Runnable)

But I don't know how to replace this code :



When we use super keyword , we call father constructor,

But what is the similar method in Runnable interface?
Srikkanth Mohanasundaram
Ranch Hand

Joined: Feb 07, 2007
Posts: 185
Please take a look at the constructors of the thread class Thread API .
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Thread, Runnable interface, simple question
 
Similar Threads
Threads
join()
priortiy
thread class execution explanation required