Skip to content

Commit

Permalink
Problem Fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreaGiardini committed Nov 2, 2013
1 parent dc66d3e commit 94dfc8a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Binary file modified Esercitazione2/Es1
Binary file not shown.
4 changes: 1 addition & 3 deletions Esercitazione2/Es1.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ static sem_t semph[K];
void * user(void * t){
int i, k;

srand(time(NULL));

//Per ogni film
for(i=0; i < K; i++){
//Attendo che il semaforo sia libero
Expand All @@ -51,7 +49,7 @@ int main (int argc, char * argv[]){
int i, j;
pthread_t thread[N];


srand(time(NULL));

/*
* Inizializzo i semafori ad 1 (libero)
Expand Down

0 comments on commit 94dfc8a

Please sign in to comment.