CISC3595: Operating System LAB Assignment: Barrier

Please review this tutorial to Linux Pthread.. Note the following (taken from manual page of pthread_create):

 #include <pthread.h>

  int pthread_create(pthread_t *thread, const pthread_attr_t *attr,
                          void *(*start_routine) (void *), void *arg);

       Compile and link with -pthread.
Note that you need to compile your program using the -pthread option:
g++ myprog.cpp -lpthread 
Requirement

You can choose to work on one of the following:

Submission

Please submit your program, named lab3.cpp, using submit3595 script:

submit3595 LAB4 lab4.cpp
To verify:
verify3595 LAB4 lab4.cpp