-1

I want create two process let's say process A and process B .

And I want to run them Simultaneously .

How to do it if at all it is possible ?

AVIK DUTTA
  • 736
  • 6
  • 23

2 Answers2

2

Thanks to Masih's post i got some idea and came up with this :

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

namespace proces
{
    class Program
    {
        static void Main(string[] args)
        {
            create_process__A("Balotelli");
            create_process__B("Pirlo");
        }

         static void create_process__A(string t)
        {
            Process.Start("http://google.com/search?q=" + t);

        }
         static void create_process__B(string t)
         {
             Process.Start("http://google.com/search?q=" + t);

         }
    }
}
Community
  • 1
  • 1
AVIK DUTTA
  • 736
  • 6
  • 23
1

I write a Little Sample for you That You Can Use:

using System;
using System.Threading;

class Program
{
    static void Main()
    {
    Thread thread1 = new Thread(new ThreadStart(A));
    Thread thread2 = new Thread(new ThreadStart(B));
    thread1.Start();
    thread2.Start();
    thread1.Join();
    thread2.Join();
    }

    static void A()
    {
    }

    static void B()
    {
    }
}
dev-masih
  • 4,188
  • 3
  • 33
  • 55
  • I wanted to create it with Process ...any way you gave me some idea s to work on and i think i got it ....Thanks – AVIK DUTTA Nov 06 '14 at 05:14