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?

Answers were Sorted based on User's Feedback



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

Answer / 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

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

Answer / ravikiran

stop(),suspend() resume() methods are deprecated used for
inter thread communication
stop will stop the exceution of thread
suspend will temporarily suspends the thread execution
resume will invoke the suspended threads for execution

Is This Answer Correct ?    46 Yes 3 No

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

Answer / mohammed salim

stop(), suspend(), resume() methods are deprecated in the
jdk1.2

Is This Answer Correct ?    17 Yes 14 No

Post New Answer

More Core Java Interview Questions

what is the difference between pagecontext and servletcontext?

5 Answers   JBA Infotech, TCS,


Is c better than java?

0 Answers  


Is simpledateformat safe to use in the multithreaded program?

0 Answers  


What are the types of collections in java?

0 Answers  


What is default switch case? Give example.

0 Answers  


Can we override singleton class?

0 Answers  


What are variable names?

0 Answers  


How is final different from finally and finalize?

0 Answers  


What is the purpose of garbage collection in java? When is it used?

0 Answers  


Why do we need hashmap in java?

0 Answers  


What is constructor and its types?

0 Answers  


what is the life cycle of jsp?

3 Answers   Photon,


Categories