Question:

Threads of a multithreaded program can share

Show Hint

Heap is common among threads; stack is private to each.
Updated On: May 26, 2025
  • Stack variables
  • Heap variables
  • Register variables
  • Local variables
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is B

Solution and Explanation

Threads share heap memory but have their own stacks. Hence, they can communicate through shared heap variables.
Was this answer helpful?
0
0