A)
->sleep method or joint method or wait method is called a thread transits from activate state to blocked state.
->sleep method or joint method or wait method is called a thread transits from activate state to blocked state.
->when a method is in blocked state, it doesn’t compete for CPU cycles because it is taken out of service temporarily from ready queue.
->when a thread is suspended by calling sleep method, it is put to service i.e., it is activated as soon as the specified sleep time lapses.
->if thread is suspended by calling wait method, the thread is activated iff notify() ot notifyAll() method is called.
->if a thread is blocked by calling join method it resumes service only when the other specified thread is dead.
Comments
Post a Comment