mirror of
https://github.com/bregman-arie/devops-exercises.git
synced 2026-02-05 16:19:10 +00:00
18 lines
254 B
Markdown
18 lines
254 B
Markdown
|
|
## Fork 101
|
||
|
|
|
||
|
|
Answer the questions given the following program (without running it):
|
||
|
|
|
||
|
|
```
|
||
|
|
#include<stdio.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?
|