private static void Main() { Supervisor sup = new Supervisor(); sup.Process(); Thread.Sleep(5000); Console.WriteLine("Final value of readers on sup is {0}", sup.Readers); Console.WriteLine("{0} writers was spawned", sup.writersSpawned); Console.WriteLine("{0} readers was spawned", sup.readersSpawned); Console.ReadKey(); }
public Reader(Supervisor supervisor, string path) { s = supervisor; _path = path; }
public Writer(string P, Supervisor S) { path = P; supervisor = S; }