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...

Difference between sleep and suspend?

Answer Posted / vikneswaran

following three method to block the thread
1.sleep()
2.suspend()
3.wait()
sleep() its move to waiting state for particular time
for example
Thread.sleep(3000);
but
suspend() method its move to waiting state until called
resume() method.

Is This Answer Correct ?    18 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How messaging services are done, before release of JMS?

2125


What are various types of class loaders used by jvm?

975


What restrictions are placed on the values of each case of a switch statement?

1000


Can I map more than one table in a cmp?

1064


How a component can be placed on Windows?

2840


Define the remote object implementation?

2490


Which are the different segments of memory?

1063


What state does a thread enter when it terminates its processing?

1056


Which component handles cluster communication in jboss?

1098


What is threadfactory?

1077


what is a non-repeatable read?

2401


What are the diff types of exception?

1041


Name three component subclasses that support painting?

1056


What is scalable, portability in the view of J2EE?

2514


Java is fully object oriented languages or not?

984