Question:

Which of the following is not shared among threads in the same process?

Show Hint

While threads share resources like heap memory and file descriptors, each thread has its own stack for local variables and execution context.
Updated On: Jun 16, 2025
  • Heap memory
  • Stack
  • File Descriptors
  • Code section
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is B

Solution and Explanation

In a multi-threaded process, the threads share certain resources, such as the heap memory, file descriptors, and code section. However, each thread has its own stack memory to store local variables and function calls. The stack is not shared between threads, which is why it is the correct answer.
Was this answer helpful?
0
0