Skip to content

Instantly share code, notes, and snippets.

@perqin
perqin / OSC_Lab04_Task1.cpp
Created May 22, 2016 12:49 — forked from anonymous/OSC_Lab04_Task1.cpp
Operating System Concepts course Lab 4 Task 1 source
#include <pthread.h>
#include <iostream>
#include <unistd.h>
#include <semaphore.h>
#include <stdlib.h>
#define BUFFER_SIZE 5
#define MAX_SLEEP_TIME 15
typedef int buffer_item;