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 the life cycle of Thread ?

Answer Posted / shajin.a.xavier

Multithreading is the mechanism in which more than one
thread run independent of each other within the process.
wait (), notify () and notifyAll() methods can be used for
inter-thread communication and these methods are in Object
class. wait() : When a thread executes a call to wait()
method, it surrenders the object lock and enters into a
waiting state. notify() or notifyAll() : To remove a thread
from the waiting state, some other thread must make a call
to notify() or notifyAll() method on the same object.

Is This Answer Correct ?    16 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the argument in java?

879


What is the purpose of static methods and static variables?

1016


What is an object’s lock and which object’s have locks?

909


What do bitwise operators do?

960


What is the difference between access specifiers and access modifiers in java?

1119


In case of inheritance what is the execution order of constructor and destructor?

1078


How to perform merge sort in java?

1008


What is a parameter in a function?

963


what is an objects lock and which objects have locks? : Java thread

968


What is fundamental datatype?

950


Java Compiler is stored in JDK, JRE or JVM?

1484


Can we have any code between try and catch blocks?

943


Is string is a class in java?

912


What is the association?

936


What about main thread in java?

1079