Ejemplo n.º 1
0
        public static void StartFastMethods(object tracer)
        {
            var fast_class = new Fast_Class(tracer as ITracer);

            fast_class.Fast();
            fast_class.SuperFast();
            fast_class.Fast();
        }
Ejemplo n.º 2
0
        public static void Method1(ITracer tracer)
        {
            //ITracer tracer = new Tracer();
            var    slow_class = new Slow_Class(tracer);
            var    fast_class = new Fast_Class(tracer);
            Thread thread     = new Thread(StartFastMethods);

            thread.Start(tracer);
            slow_class.Slow();
            slow_class.SuperSlow();
            thread.Join();
        }