All pastes #1833700 Raw Edit

Test MultiCore

public text v1 · immutable
#1833700 ·published 2010-03-11 13:11 UTC
rendered paste body
using System;
using System.Text;

using System.Threading;

namespace TestCPU
{
    class Program
    {
        static void Main(string[] args)
        {
            int ThreadMax = 10;

            for (int i = 0; i < ThreadMax;i++ )
            {
                Thread th = new Thread(Worker);
                th.Start();
            }

            Console.ReadKey();
        }

        private static void Worker()
        {
            {
                Console.WriteLine("Arbeit! Arbeit!");
            }while(true);
        }
    }
}