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

what is handle?

2371


what are RemoteObjects?

2743


Where can I find seam examples and documentation?

1099


What is the immediate superclass of the applet class?

1088


Whats new with the stop(), suspend() and resume() methods in jdk 1.2?

1045


What is the difference between the string and stringbuffer classes?

1103


How is a java object message delivered to a non-java client?

1052


What is a class loader?

1915


what is an isolation level?

2761


What’s jboss jbpm?

1035


when A client sent a request to the server to open facebook page and close the browser after this request .at that time the same user do login by using a different browser then that session id will exist or not for the same client??

1544


Can you give me a simple example of using the requiredif validator rule?

1127


Should synchronization primitives be used on bean methods?

1069


what are the activation groupworks?

2202


Do I have to use jsps with my application?

1025