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.
MonitoriImplementacija monitora na jeziku C++ pomoću semafora:class Monitor {public:Monitor () : sem(1) {}void criticalSection ();private:Semaphore sem;};void Monitor::criticalSection () {sem.wait();//... telo kritične sekcijesem.signal();}15/285