//Semaphore FullPot; public AgentForDining(ulong NumberOfServ) { InformCook = new Semaphore (0); //FullPot = new Semaphore (0); pot = NumberOfServ; Max = NumberOfServ; Savlock = new object (); }
static void Main(string[] args) { //boundChannel = new Mark.Utilities.MAC.BoundChannel<int>(10); channel = new Mark.Utilities.MAC.Channel<int>(); semaphore = new Mark.Utilities.MAC.Semaphore(0); //mutex = new Mark.Utilities.MAC.Mutex(); mutexCount = 0; //MutexTest(); //BoundChannelTest(); ChannelTest(); //semaphoreTest(); return; }