Skip to content

Instantly share code, notes, and snippets.

View malderete's full-sized avatar

Martin Alderete malderete

  • booking.com
  • Netherlands
View GitHub Profile
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#define BUF_SIZE 5
// the buffer works like a stack for
// the sake of simplicity, if needed
// we may implement a queue