Dear Team,
I have an requirement in windows applications, that i have to execute 3 oracle procedures parllely in an single click event.
is there is any way of doing this. Like
1) using the multi threading concept.
2) can we pass three procedures at a time in commandtext
or any alternative way of doing this or any link related to it.
Thanx in advance .
abdul gani shaikPosted Jan 13, 2009, 12:20 PM
hi Jon
thanx for the code you have given..
actually i am trying to run 3 different oracle procedure not 3 different functions...
and i need to run these all procedure in single click event.
Jan MontanoPosted Jan 13, 2009, 1:14 AM
{
Thread thread1 = new Thread(new ThreadStart(Procedure1));
Thread thread2 = new Thread(new ThreadStart(Procedure2));
Thread thread3 = new Thread(new ThreadStart(Procedure3));
thread1.Start();
thread2.Start();
thread3.Start();
Console.ReadLine();
}
static void Procedure1()
{
for (int i=0; i< 100; i++)
{
Console.WriteLine(i);
}
}
static void Procedure2()
{
for (int i = 100; i < 200; i++)
{
Console.WriteLine(i);
}
}
static void Procedure3()
{
for (int i = 200; i < 300; i++)
{
Console.WriteLine(i);
}
}
Ryan AlfordPosted Jan 13, 2009, 12:47 AM