1.5.4.2. fejezet, Paralell.Invoke

namespace TaskProject
{
    class Program
    {
        static void Main(string[] args)
        {
            Task<int> task = new Task<int>(() => { return 10; });
            task.Start();
            Console.WriteLine(task.Result); // 10  
            Console.ReadKey();
 
            string[] array = new string[] 
            {
                "Alpha",
                "Beta",
                "Gamma",
                "Delta",
                "Epszilon"
            };
            foreach (string item in array)
            {
                Task task2 = new Task((obj) => Console.WriteLine(obj), item);
                task2.Start();
            }
            Console.ReadKey();
        }
    }
}