Skip to content

Commit 16c2a48

Browse files
committed
1 2 3 4
1 parent 0cbe423 commit 16c2a48

File tree

8 files changed

+42
-0
lines changed

8 files changed

+42
-0
lines changed

img/1.png

131 KB
Loading

img/2.png

21 KB
Loading

img/3.png

21 KB
Loading

img/4.png

113 KB
Loading

src/1.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#include "frk.h"
2+
3+
int main(void) {
4+
for(int x = 0;x < 3;x++) {
5+
frk();
6+
thread_create();
7+
frk();
8+
}
9+
}

src/2.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#include "frk.h"
2+
3+
int main(void) {
4+
for(int x = 0;x < 3;x++) {
5+
if(frk() == 0) {
6+
if(x != 2) {
7+
frk();
8+
}
9+
break;
10+
}
11+
}
12+
}

src/3.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#include "frk.h"
2+
3+
int main(void) {
4+
for(int x = 0;x < 3;x++) {
5+
if(frk() == 0) {
6+
if(x != 0) {
7+
frk();
8+
}
9+
break;
10+
}
11+
}
12+
}

src/4.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#include "frk.h"
2+
3+
int main(void) {
4+
for(int x = 0;x < 3;x++) {
5+
thread_create();
6+
frk();
7+
frk();
8+
}
9+
}

0 commit comments

Comments
 (0)