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

Added a comment removed unused header

parent e0e84ad4
No related branches found
No related tags found
1 merge request!4Übung2
//Code compiles but without protection
//Aufgabe 1
#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
#include <unistd.h>
#include <sys/wait.h>
#define crosses 100000
int car_on_bridge = 0;
......@@ -21,7 +20,6 @@ void* func(void* arg){
usleep(10000);
car_on_bridge --;
printf("Car %d is crossing the bridge\n", car_id);
crosses_counter++;
}
return NULL;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment