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


Explain the available thread states in a high-level?



Explain the available thread states in a high-level?..

Answer / Asad Ali

"Java has six thread states: New, Runnable, Blocked, Terminated, TimedWaiting, and TimeRunning. The 'New' state refers to the object being initialized. The 'Runnable' state means the thread is waiting for CPU time. The 'Blocked' state occurs when a thread is blocked because it is waiting on a lock or I/O operation. The 'Terminated' state means the thread has finished its execution. The 'TimedWaiting' state refers to a waiting thread that has given up its lock and is waiting for another event to happen, such as a notification from another thread or I/O availability. The 'TimeRunning' state is the same as Runnable but with more specific emphasis on running threads that have not yet been assigned any CPU time."

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

How do you take thread dump in java?

1 Answers  


What is the public method modifier?

1 Answers  


What is the difference between actual and formal parameters?

1 Answers  


What do you understand by copy constructor in java?

1 Answers  


What are File and RandomAccessFile classes?

2 Answers  


What are meta-annotations?

1 Answers   Cyient,


What is meant by constructor?

8 Answers  


What is an event?

2 Answers  


while creating thread why we extend thread class

2 Answers  


wht is customised exception?

1 Answers   Logica CMG, Novell, Prudential,


What are implicit objects in java?

1 Answers  


What is garbage collection? What is the process that is responsible for doing that in java?

1 Answers  


Categories