Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
2
Reply
How to use Multi Threading in a form C# winform
Bineesh Viswanath
Dec 19 2017 5:41 AM
128
Reply
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();
}
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
C# code to save datetime format in 01/01/1900 hh:mm:ss
WebApi With Angularjs