This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <string.h> | |
#include <unistd.h> | |
#include <stdlib.h> | |
#include <pthread.h> | |
#include <semaphore.h> | |
pthread_mutex_t buf_lock; | |
pthread_mutex_t read_lock; | |
pthread_mutex_t print_lock; |