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

Do I need to import javlang package any time? Why ?

1037


Can I have an action without a form?

1051


what are RemoteObjects?

2685


Is a class a subclass of itself?

1130


Can I use multiple html form elements with the same name?

1000


why static class in java

1720


What is the map interface?

1079


What is JTS?

2309


What are transaction attributes?

1045


What is the difference between system.out ,system.err and system.in?

1051


What is a modular application?

1011


What is message driven beam?

1001


Is “abc” a primitive value?

1051


Have you used threads in Servelet?

2473


Define prototype?

999