Esempio n. 1
0
        public Klient(Golibroda g, Mutex m, Queue <Klient> s)
        {
            this.m = m;
            this.g = g;
            this.s = s;
            Thread t = new Thread(delegate() { run(); });

            t.Start();
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            Mutex          m = new Mutex(false, MUTEX_GUID);;
            Queue <Klient> s = new Queue <Klient>(10);
            Golibroda      g = new Golibroda(m, s);

            for (int i = 0; i < 100; i++)
            {
                new Klient(g, m, s);
            }
        }