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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
abdus salam8 reputationPosted May 22, 2007, 3:24 AM EDT
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.
Nguyen Duc Hoa7 reputationPosted May 22, 2007, 11:20 AM EDT
Posted Oct 15, 2007, 1:40 AM EDT
may b this vl help u out vth exampl e2
http://samples.gotdotnet.com/quickstart/CompactFramework/doc/controlinvoker.aspx