/*A program of threads which may make ur stack full & hang*/
#include<stdio.h>
#include<pthread.h>
void *(thread)(void * mess)
{
while(1)
printf("%s\n",(char *)mess);//no of threads r going to be increased....occupy whole stack at one time..then system will say fork can not be called...when we try to open any application...
if the fork is not called after such scenario...that means the area of ram used by applications has been fully occupied..how can a stack grow to the size of ram????