Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is stop(), suspend(), resume() method?

Answer Posted / kruthi

stop(), suspend() and resume() are the methods used for
thread implementation.
stop() - terminate the thread execution,
Once a thread is stopped, it cannot be restarted with the
start() command, since stop() will terminate the execution
of a thread. Instead you can pause the execution of a
thread with the sleep() method. The thread will sleep for a
certain period of time and then begin executing when the
time limit is reached. But, this is not ideal if the thread
needs to be started when a certain event occurs. In this
case, the suspend() method allows a thread to temporarily
cease executing.
resume() method allows the suspended thread to start again.

Is This Answer Correct ?    77 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is finally block?

1036


Explain an intermediate language?

938


What are the benefits of operations?

936


When a lot of changes are required in data, which one should be a preference to be used? String or stringbuffer?

1226


How do you define a singleton class?

1057


What is integer size in java?

994


What are java packages? What is the significance of packages?

989


Why do we need wrapper class?

976


Explain the features of java?

998


What is the basic difference between string and stringbuffer object?

1065


What is the difference between and ?

982


Explain the meaning of java applet.

1052


Explain about arraylist?

1077


What is the difference between choice and list?

1078


Why does java not support pointers?

1066