2
Answers

How to use Multi Threading in a form C# winform

Sir,
 
I need help regarding how to use multi threading in a winform application.
 
suppose I have five large data processing functions.
 
Can i use five thread for each functions or is it a obsolete?
 
I putting an example below. kindly suggest better option:-
 
Function1()
{
ThreadStart tsActive = new ThreadStart(LoadActionDetailsForGrid);
Thread thrdActive = new Thread(tsActive);
thrdActive.Start();
}
 
Function2()
{
ThreadStart tsActive1 = new ThreadStart(LoadActionDetailsForGrid1);
Thread thrdActive1 = new Thread(tsActive1);
thrdActive1.Start();
}
 
Function3()
{
ThreadStart tsActive2 = new ThreadStart(LoadActionDetailsForGrid2);
Thread thrdActive2 = new Thread(tsActive2);
thrdActive2.Start();
}
Answers (2)