Skip to content
Snippets Groups Projects
Commit f7afdf2d authored by omah03's avatar omah03
Browse files

Initialised thread with 0 and 1

parent 6a71c7f5
No related branches found
No related tags found
1 merge request!4Übung2
This commit is part of merge request !4. Comments created here will be created in the context of that merge request.
......@@ -47,7 +47,7 @@ void* func(void* ptr){
}
int main(){
pthread_t threads[Car_Number];
pthread_t threads[Car_Number] = {0,1};
int thread_id[Car_Number];
for (int i = 0; i < Car_Number; i++){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment