Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (60)

Sign In or Sign Up now to post a comment!
  • Thanks! Now i understand what threading does and what it's good for!

  • You explained a complex topic in a way that anyone could understand. Great tutorial! I think that it would be nice to see a simple real-world application of multiple threads; searching a large array with a linear search is an example I like to use for demonstrations. :)

  • What are threads used for?

  • thank you

  • nice example

    

  • Courier New? Be ashamed! Get Consolas now! :D

  • thanks

    the code :

    systemio.net/snippets.php

  • Thank you :)!

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

  • excellent tutorial

    thank you

  • Nice introduction to threads...

  • thanks for the effort making this easy and clear

  • excellent tutorial, thank you!!

  • 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?

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

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

  • 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

  • @MaxPFC I know your post was 5 months ago but i have to agree with you here, as i also learned in C++ but evolved right into C# (skipped Java) as a daily coder. Unless you have a need for database programming, bit wise manipulation, and registry handles, C# is more robust, easier, quicker, and less error prone as a development language. Learning C# and OOP was two of the best things i ever did. I only go back to C++ to use Eclipse as an IDE for Linux now.

  • very helpfull

  • 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?

  • thank you nice tutorial

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

  • 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?

  • where can i get the threadwork class ?

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

  • I like this video

  • This might seem like a silly question.

    But what advantages does dual threading have?

    What program would this improve?

    I have dual core CPU, so I can do it; with what I'm programming so far, I don't need it, but yeah... The question?

  • @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.

  • @mindprism ah yes, that was a good interpretation!

    Thank you, even though I asked it 6 months ago.

    fast reply, hehe.

  • @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.

  • Thought it was very clarifying til I found out ThreadWork isn't built in (?) . Now I'm just confused and not sure how to do something similar on my own.

  • @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.

  • very helpful thanks dude!

  • It says that it can't find ThreadWork. using System.Threading; is there, so I don't know why it can't find ThreadWork... Anyone know what's up?

  • @FlablessGuy

    ThreadWork was of his own design.

  • Thank you for the tutorials. I learned alot.

  • Great video, well explained. Don't forget that threads can cause unnecessary overhead and/or greatly increase complexity of the code if improperly used.

  • nice tutorial. very easy to follow

  • How do u make the output in command prompt?

  • @DaLunKeZhang Usually just Console.WriteLine("text goes here");

  • Good tutorial.

    Although i feel comfortable with BackGroundWorker Class.

  • Thank you very much, that was a very clear video...could you add more tutorials on database creating, managing and remote connection....sorry, its too much...but I mean all the database field in the C#. Please

  • You should add this.

    Your processor can only do one thing at one time.

    So if you only have one processor...

    It would be faster doing them separately.

    If you have a dual core,quad core or whatever. Then you can do more than one thing at the same time.

  • no you are wrong.

  • Hey thank you man

  • WOW!!! You actually made the topic EXTREMELY clear for me! Thanks a bunch! :)

  • Nice, thank you :)

  • im in school for C prgramming right now and you teach it better than my teacher. You should do one on how to make games, beginner games of course.

    (tetris, tic tac toe, etc)

    Thanks for your tutorials they help me soo much

  • You better find a different school If your teacher is that shallow.

  • Is it possible in Visual Basic 2008?...

  • Is this only about console applications, or also for Winforms?

    (i'm new to c#)

  • You can do the same thing with winforms, it does not matter.

  • Thanks for the reply QuackWare

  • very well done but dont forget about the default thread!

  • Very good !

    I understand now.

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more