devops-exercises/topics/os/fork_101.md
abregman 99c4e02ecf Rename exercises dir
Name it instead "topics" so it won't be
strange if some topics included "exercises" directory.
2022-08-02 01:53:56 +03:00

280 B

Fork 101

Answer the questions given the following program (without running it):

#include<stdio.h>
#include <unistd.h> 
int main()
{
  fork();
  printf("\nyay\n");
  return 0;
}
  1. How many times the word "yay" will be printed?
  2. How many processes will be created?