[PLUG] A Problem from Bach's book

Ashutosh Adkar ashu.adkar at gmail.com
Thu May 10 12:30:20 IST 2007


I have searched a lot for a solution to this particular problem from the
exercises section of "The Design of the Unix Operating System" by Maurice
Bach.I will be very thankful if anybody can please tell me what will happen
in the kernel (Unix System V) when the following program is executed.

#include<stdio.h>

int main()
{
        int i;
        f();
        g();
}



f()
{
        vfork();
}

g()
{
        int blast[100];
        int i;
        for(i = 0;i < 100;i++)
        {
                blast[i] = i;
        }


Thanks in Advance.

P.S. -> This is not my homework I am asking you to do.So please...
-- 
Regards,
Ashutosh Adkar



More information about the Plug-mail mailing list