#include #include "Thread.h" #include "NitX.h" #include "NitY.h" #include "Semaphore.h" #include "BoundedBuffer.h" int main(){ cout << "Start..." << endl; BoundedBuffer b(2); b.put(20); b.put(10); cout << b.get() << endl; b.put(21); cout << b.get() << endl; pthread_exit(0); cout << "... end." << endl; return 0; }