Add OS and OpenShift questions

This commit is contained in:
abregman
2021-07-22 20:45:06 +03:00
parent 1d88242f34
commit 6e01886e6b
7 changed files with 321 additions and 123 deletions

17
exercises/os/fork_101.md Normal file
View File

@ -0,0 +1,17 @@
## 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?

18
exercises/os/fork_102.md Normal file
View File

@ -0,0 +1,18 @@
## Fork 101
Answer the questions given the following program (without running it):
```
#include<stdio.h>
int main()
{
fork();
fork();
printf("\nyay\n");
return 0;
}
```
1. How many times the word "yay" will be printed?
2. How many processes will be created?

View File

@ -0,0 +1,4 @@
## Fork 101 - Solution
1. 2
2. 2

View File

@ -0,0 +1,4 @@
## Fork 102 - Solution
1. 4
2. 4