mirror of
https://github.com/Kaehvaman/OAIP.git
synced 2025-01-18 16:49:11 +04:00
15 lines
236 B
C
15 lines
236 B
C
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <threads.h>
|
|
|
|
void thrd_func(int* i) {
|
|
printf_s("%d\n", *i);
|
|
}
|
|
|
|
int main() {
|
|
thrd_t* threads[10];
|
|
for (int i = 0; i < 10; i++) {
|
|
thrd_create(threads[i], thrd_func, &i);
|
|
}
|
|
return 0;
|
|
} |