Do threads share heap?



Do threads share heap?..

Answer / Nitin Garg

Yes, in Linux, all threads within a process share the same global data segment (including the heap), which means that changes made by one thread are visible to other threads.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Linux Threads Interview Questions

Which way of creating thread is better?

1 Answers  


Is threading harmful?

1 Answers  


how will you distinguish if it is a process or a thread, provided you know pid in linux operating system?

1 Answers   SwanSoft Technologies,


what do you mean LD_LIBRARY_PATH? What LD_LIBRARY_PATH does

2 Answers   CTS, VIT University,


How many threads can a cpu run?

1 Answers  


How many threads does a core i7 have?

1 Answers  


Does hair grow back thicker after threading?

1 Answers  


Do threads count as cores?

1 Answers  


Explain each system calls used for process management in linux.

1 Answers  


What is the use of thread over process?

11 Answers   NetApp,


Why are threads expensive?

1 Answers  


Do threads share file descriptors?

1 Answers  


Categories