﻿using KillThemAll._0_Thread;
using KillThemAll._1_Mutex;
using KillThemAll._2_Semaphore;
using KillThemAll._3_EventThreads;
using KillThemAll._4_DI;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace KillThemAll
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Практика потоков");
            var learningThreads = new LearningThreads();
            learningThreads.Execute();
            nextTask();


            //Console.WriteLine("Практика Mutex");
            //var learningMutex = new LearningMutex();
            //learningMutex.Execute();
            //nextTask();

            //Console.WriteLine("Практика Semaphore");
            //var learningSemaphore = new LearningSemaphore();
            //learningSemaphore.Execute();
            //nextTask();

            //Console.WriteLine("Практика событийных потоков");
            //var learningEvents= new LearningEventThreads();
            //learningEvents.Execute();
            //nextTask();

            //Console.WriteLine("Практика DI");
            //var learningDI = new LearningDI();
            //learningDI.Execute();
            //nextTask();
        }

        static void nextTask()
        {
            Console.WriteLine("Перейти к следующей задаче");
            Console.ReadLine();
        }
    }
}
