running a recursive function and running a new process in background is not
same. infinite recursion is not that much worse. when u r calling a
recursive function, its not another process, its just a function in the
process stack. but running a process background or creating new process
means OS is allocationg process table entry and all other resource for that.


On Nov 30, 2007 11:03 AM, Zico <[EMAIL PROTECTED]> wrote:

>   On Nov 29, 2007 11:27 PM, Taskinoor Hasan <[EMAIL 
> PROTECTED]<taskinoor%40gmail.com>>
> wrote:
>
> > while(1) {
> > fork();
>
> > }
> > with f. so it become
> > f(){ f|f& };f
> >
> > this also works as fork bomb. so we r just calling a function that runs
> > its
> > copy in background, which further create more copy, which further ......
> >
>
> Yep! Sorta
>
> So essentially we are defining a recursive function
> and then invoking it. With each invocation, a new
> shell gets created.
> --
> Best,
> Z
>
> [Non-text portions of this message have been removed]
>
>  
>


[Non-text portions of this message have been removed]

Reply via email to