Guys I'm new in Programming and I've came across the term Threading serveral times but I'm not sure what is it.Can anyone give me a brief Explanation of what is it.
Loading
Guys I'm new in Programming and I've came across the term Threading serveral times but I'm not sure what is it.Can anyone give me a brief Explanation of what is it.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Posted Oct 15, 2007, 5:40 AM
may b this vl help u out vth exampl e2
http://samples.gotdotnet.com/quickstart/CompactFramework/doc/controlinvoker.aspx
Nguyen Duc HoaPosted May 22, 2007, 3:20 PM
abdus salamPosted May 22, 2007, 7:24 AM
Threading:
Threading is to divide one process into multiple executable paths (threads), so that processor can execute them in parallel (by allocating time slots). Basic purpose of threading is to improve the performace of application by creating the seperate threads for long running processes (e.g Importing users from CSV file into the database, Exporting data to external system). As you can see from the above example, there can be thousands of users that system will import into the database (lengthy process). If you write the code for importing users in the main application and does not create the thread, application will remain busy in importing users all the time. You can improve the performace of this application by creating two different threads.
1- Main Application (Main thread)
2- User import function (2nd Thread)
While Import function imports the user, main application can continue the other operations.
I hope this will help you understanding the threadings.