Destroying state of a thread - Operating System

Q.  Operating System: Which one of the following is not a valid state of a thread?
- Published on 19 Oct 15

a. running
b. destroying
c. ready
d. blocked

ANSWER: destroying
 

    Discussion

  • Nirja Shah   -Posted on 23 Nov 15
    - A thread has the following states:
    NEW
    - A thread that is yet to start is in this state.

    RUNNABLE
    - A thread executing in the Java virtual machine is in this state.

    BLOCKED
    - A thread that is blocked waiting for a monitor lock is in this state.

    WAITING
    - A thread that is waiting for another thread to perform a particular action is in this state.

    TIMED_WAITING
    - A thread which waits for another thread to perform an action for up to a specified waiting time is in this state.

    TERMINATED
    A thread that has completed its execution or exited is in this state.

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)