Ejemplo n.º 1
0
        public static int Main(String[] args)
        {
            var requestQueue = new RequestQueue();
            var responseQueue = new ResponseQueue();
            responseDaemon = new ResponseDaemon(responseQueue);
            serverDaemon = new ServerDaemon(requestQueue);
            commandDaemon = new CommandDaemon(requestQueue,responseQueue);

            responseDaemon.Start();
            commandDaemon.Start();
            serverDaemon.Start();
            Console.ReadKey();
            return 0;
        }
Ejemplo n.º 2
0
 public CommandDaemon(RequestQueue requestQueue, ResponseQueue responseQueue)
 {
     this.requestQueue = requestQueue;
     this.responseQueue = responseQueue;
 }
Ejemplo n.º 3
0
 public ResponseDaemon(ResponseQueue responseQueue)
 {
     this.responseQueue = responseQueue;
     this.numberOfProcessors = 4;
 }