clone() system call, Share Heap.
In my program I have a requirement to
-->1)create a child which should have different PCB's so that I want to handle same signal differently in Main Thread and Child Thread.
-->2)I want to Share Global data(Heap) between Main Thread and Child.
To achieve this I tried to Use Clone() system call with CLONE_FS and CLONE_FILES and requirement 1) was achieved by pthread_sigmask and sigaction().
But I Could not fulfill requirement 2).
Is my approach correct? If not give please give me a suggestion.
Is this possible WITHOUT Inter Process Communication?
Is it possible with clone() system call?