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 string and its types?

1187


What is double word?

977


What is parseint?

1021


What is the difference between yield() and sleep()?

1017


How many classes can any class inherit java?

972


In java how do we copy objects?

1055


Can singleton class be inherited in java?

1008


Difference between character constant and string constant in java ?

1026


Which are different kinds of source code?

1113


Define reflection.

1002


What is the difference between dom and sax parser in java?

979


Why is an interface be able to extend more than one interface but a class can’t extend more than one class?

1170


What are the two environment variables that must be set in order to run any java programs?

967


What is package private scope in java?

951


How can we make sure main() is the last thread to finish in java program?

1202