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
My doubt is thread does share code section , data section and files. So global variables it does share bt does it also share heap section?