init commit

This commit is contained in:
2026-05-22 17:06:14 +03:00
commit d0963dd14c
82 changed files with 93286 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
#include <stdlib.h>
#include <pthread.h>
#include <stdio.h>
#define THREAD_NUM 10000
void *task(void *args){
return 0;
}
int main(){
pthread_t pid[THREAD_NUM];
int i = 0;
for(i=0; i<THREAD_NUM; i++){
if(pthread_create(&pid[i],NULL,task,NULL) > 0){
for(int j=0; j<i; j++){
pthread_join(pid[j],NULL);
return 1;
}
}
}
return 0;
}