text: malloc by a thread allocates which memory?? of my understanding the no of threads a process can spawn is limited to the memory the process is allocated. if each of these threads have a malloc in them is this memory also allocated from the memory that is allocated to the process??? the memory will be allocated from the process heap (memory allocated to the process) since threads doesnt have their own heap. in the process control block (pcb) of that process there are pointers which point to the memory allocated to that process. the thread is assigned memory from the same heap when it calls a malloc..... ..... linux 2.4 kernel.