Skip to content

Instantly share code, notes, and snippets.

View negative0's full-sized avatar
💻
Never underestimate the power of code

Chaitanya Bankanhal negative0

💻
Never underestimate the power of code
  • Pune
View GitHub Profile
#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;