5. Predavanje - VTS NS
5. Predavanje - VTS NS
5. Predavanje - VTS NS
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Kooperativni procesiOgraničeni bafer (bounded buffer):tailconst int N = ...; // Capacity of the bufferclass Data;class BoundedBuffer {public:BoundedBuffer ();void append (Data*);Data* take ();private:Data* buffer[N];int head, tail, count;};head39/285