How to Create a Multi-Threading Application – C# C Sharp Visual Studio 2008


In this tutorial I show you how to create a multi threading application to save time and improve application performance. OTHER TUTORIALS: www.Quack-Ware.com WEBSITE: www.Quack-Ware.com FORUMS www.Quack-Ware.com

25 Comments

  1. TheMasterAbdul says:

    how to stop a thread from the middle of its execution?

  2. hellsing357 says:

    excellent tutorial

    thank you

  3. tripathiashishk says:

    Nice introduction to threads…

  4. khanolid says:

    thanks for the effort making this easy and clear

  5. SDAction2009 says:

    excellent tutorial, thank you!!

  6. MaxPFC says:

    Each language has it’s own rules and logic, therefore one language is not really “more logical” than another. PS: I’m a former C++ coder, and unless you’re coding device drivers or other low level stuff C#’s way of doing things is often more robust and less error prone, C++/MFC’s windowing structure for example is obtuse and in my view unnecessarily complex. Just my opinion, mind you. o_0

  7. janequorzar says:

    @mindprism Another good example of what threading can have is Servers that have multiple clients. This way you can allow each one “time” on the server without having to wait on another process to finish.

  8. janequorzar says:

    @ealshabaan Yes that is what it means. Remember, threads have no speed control. There are tricks on how to add the ability though.

  9. ealshabaan says:

    at 3:25, you can see that printing order (line 6and 7) has changed. does this means that the second thread finished the task of printing that particular line before the first thread, although you have started the first thread first?

  10. peternicolisgod says:

    ow do i get my server to talk to my clients, i have a muitl threaded server setup and can get the client data entered to appear on the server with  Console.WriteLine(Encoding.ASC­II.GetString(data, 0, recv));

    but how do i talk back???

    thanks

  11. peternicolisgod says:

    ow do i get my server to talk to my clients, i have a muitl threaded server setup and can get the client data entered to appear on the server with  Console.WriteLine(Encoding.ASC­II.GetString(data, 0, recv));

    but how do i talk back???

    thanks

  12. imalwayswatchingu00 says:

    @mindprism ah yes, that was a good interpretation!
    Thank you, even though I asked it 6 months ago.

    fast reply, hehe.

  13. mindprism says:

    @imalwayswatchingu00 {But what advantages does dual threading have?}

    One example:

    Imagine a bank with 1000 tellers, and an application with 1 million customers that need to bank. Without threading your million customers have to stand in 1 line, with threading you can create as many lines as you want (almost).

    The bank is a webservice or other asynch communication.

  14. Necry3d says:

    i havent completed a c++ book yet. but imo. i tink c++ feels easier & more logical & more power

  15. adsenseearnings says:

    google adsense just 500 plus blogger trainings and trafic tips

  16. donjomon says:

    very helpfull….

  17. donjomon says:

    very helpfull

  18. energyzerable says:

    ellerine sağlık hocam. Oldukça merak ettiğim bir konuyu basit ve güzel bir şekilde yapmışsınız.. devamı var mı acaba?

  19. AbigayleAbril says:

    Existent Be Naughty dating benaughtyman.info

  20. adiosundfeuerfrei says:

    thank you nice tutorial

  21. meethong says:

    Thank you. It was so much helpful for me. =)

  22. POONKAATELEVISION says:

    thnx.. but explain me this line………..what is occuring in NEW THREAD STAR,,,,?Thread t1 = new Thread(new ThreadStart(Mymethod) );… can v satrt new thread in another line?

  23. haririanali says:

    where can i get the threadwork class ?

  24. Mtbfanro says:

    good video, my question is how do I choose HOW many threads is it good/common to have?

  25. Mtbfanro says:

    @BenRangel ThreadWork does not exist, it was a class he made with just some methods that do something, for demo purposes. You can add your own class with a couple of methods that print somehting in a loop (like he did), and call them on separate threads in a test console application.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Powered by Yahoo! Answers