Source |
CodingSec |
Identifiant |
360317 |
Date de publication |
2017-04-28 13:27:57 (vue: 2017-04-28 13:27:57) |
Titre |
What are different thread states in java programming |
Texte |
In this article we will learn about different thread states along with an example program that demonstrates thread life cycle. Life cycle of a thread refers to all the actions or activities done by a thread from its creation to termination. A thread can be in any one of the following five states during its life cycle: New: A thread is created but didn't begin its execution. Runnable: A thread that either is executing at present or that will execute when it gets the access to CPU. Terminated: A thread that has completed its execution. Waiting: A thread that
|
Envoyé |
Oui |
Condensat |
about access actions activities all along any appeared are article begin but can coding completed cpu created creation cycle cycle: demonstrates didn different done during either example execute executing execution first five following from gets has its java learn life new: one post present program programming refers runnable: security states terminated: termination thread waiting: what when will |
Tags |
|
Stories |
|
Notes |
★★★★★
|
Move |
|