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 .

Ryan AlfordRank #1,411 · 1.2K reputationPosted Jan 12, 2009, 7:47 PM EST
Jan MontanoRank #1,295 · 1.3K reputationPosted Jan 12, 2009, 8:14 PM EST
{
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);
}
}
abdul gani shaik3 reputationPosted Jan 13, 2009, 7:20 AM EST
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.