4 Ocak 2018 Perşembe

Multithreading

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

namespace App28
{
    class Program
    {
        static void Main(string[] args)
        {
            Task.Factory.StartNew(yaz0);
            Task.Factory.StartNew(yaz1);

            Console.ReadLine();
        }
        static void yaz0()
        {
            for (int i = 0; i < 1000; i++)
            {
                Thread.Sleep(250);
                Console.Write("0");
            }
        }
            static void yaz1()
                {
                for (int i = 0; i < 1000; i++)
                {
                    Thread.Sleep(250);
                    Console.Write("1");
                }
            }

        }
    }

Hiç yorum yok:

Yorum Gönder

Mac adres formatı excel

excel iki nokta mac addres formatı Mac adresi karakterlerini üst üste iki nokta : iki nokta üst üste olacak şekilde excel dosyasında ayırır....