Question:medium

Deallocation of stack of thread and register contexts will take place.

Show Hint

Deallocation of resources occurs when a thread finishes its execution, which involves freeing up memory and other resources associated with the thread. This typically happens at the thread’s termination.
Updated On: Feb 11, 2026
  • at the termination of thread
  • at the time of thread blocking
  • at the time of thread spawning
  • at the time of unblocking the thread
Show Solution

The Correct Option is A

Solution and Explanation

A thread's stack and its register context are deallocated upon its termination. Deallocation involves freeing resources, such as memory and registers, that were allocated during the thread's execution. This process occurs only when the thread terminates, not during blocking, spawning, or unblocking, as these are temporary states where resources remain in use. Thus, the correct answer is: (1) at the termination of thread.
Was this answer helpful?
0