Thanks paulsm4,
I have gone through the link you gave.I was very informative.
Can you tell me how much should the stack size to begin with ( or to start with I can take a "educated guess"

).
Will I be able to come to know that my application have died because
1. there is no stack remaining.
2. My process 2 has corrupted my process 1's data in stack or ram.
does the kernel give some notification.( Like in normal Linux I have seen stack dump which SOMETIMES lead to the cause of kernel panic/Segmentaion fault/Stop Application execution).
Regards
Niraj Kulkarni.