Consider the following program.
#include
#include
#include
int main(vaid)
{
pid_tpid;
int var1 = 100;
pid = fork ();
if(pid == 0) /-child process*/
varl = 200;
fork ();
printf(“%d”, var1);
return 0;
}
Assuming all invocations of fork are successful, which of the following when the program is executed on the UNIX OS?
1
200 200 200 200
2
100 100 100 100
3
100 200 200 200
4
100 100 200 200