-
Notifications
You must be signed in to change notification settings - Fork 0
/
zad3.txt
29 lines (23 loc) · 812 Bytes
/
zad3.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
john@DESKTOP-TPH31OD:/mnt/e/Uczelnia/Semestr5/SCR-Systems/kod1$ gcc ./bug3.c -pthread
john@DESKTOP-TPH31OD:/mnt/e/Uczelnia/Semestr5/SCR-Systems/kod1$ ./a.out
Creating thread 0
Creating thread 1
Creating thread 2
Creating thread 3
Creating thread 4
Creating thread 5
Creating thread 6
Creating thread 7
Hello from thread 8
Hello from thread 8
Hello from thread 8
Hello from thread 8
Hello from thread 8
Hello from thread 8
Hello from thread 8
Hello from thread 8
Pojedynczy argument jest przekazywany jako zmienna,
natomiast wiele argmentów przekazywanych jest za pomoca struct'a.
program bug3.c kompiluje się bez błędów jednak widać problem na jego wyjściu po wykonaniu.
Program bug3.c jest przykładem błędnego przekazywnia danych,
program Zad3.c został poprawiony tak by działał poprawnie.