#include <iostream>
#include <string>
#include <thread>
#include <queue>

#include "../semaphore/semaphore.h"
#include "../cmdfork/cmdfork.h"

using namespace std;

extern mutex g_coutMutex;
extern mutex g_qsMutex;
extern queue<string> g_qs;

extern Semaphore g_workforce;
extern Semaphore g_worker;

void dispatch(string const &line);
void process(int nr);
