Threads of a process share
A |
global variables but not heap. |
B |
heap but not global variables. |
C |
neither global variables nor heap. |
D |
both heap and global variables. |
Multiple threads of the same process share other resources of process except register, stack and stack pointer.
A process is generally considered to consist of a set of threads sharing an address space, heap, static data, code segments and file descriptors.
Thread share all other resources of process except local data like – register, stack.
Thank You