Task: Demonstrate Thread Memory Sharing (Heap vs Stack)
Task: Demonstrate Thread Memory Sharing (Heap vs Stack): a task in Terminal-Lego-15k (Harbor dataset). Write a C program that demonstrates and proves whether threads share the same heap or have distinct heaps. The program should also show that threads have distinct stacks.
The task
Write a C program that demonstrates and proves whether threads share the same heap or have distinct heaps. The program should also show that threads have distinct stacks.
Part of PrimeIntellect/Terminal-Lego-15k.