1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

MultiThreading

Discussion in 'Visual Basic .NET' started by captchaman, Mar 21, 2011.

  1. captchaman

    captchaman Junior Member

    Joined:
    Sep 16, 2010
    Messages:
    190
    Likes Received:
    842
    Occupation:
    Software Programmer
    Location:
    USA
    If anyone has experience with multithreading in VB.NET, please PM me. If it matters in any way, it's crucial that the multithreading is done in a BackgroundWorker thread.
     
  2. Stalli0n

    Stalli0n Junior Member

    Joined:
    Nov 17, 2010
    Messages:
    115
    Likes Received:
    83
    Location:
    Europe
    you can use ThreadPool.

    Code:
    ThreadPool.QueueUserWorkItem(...);
    
     
  3. captchaman

    captchaman Junior Member

    Joined:
    Sep 16, 2010
    Messages:
    190
    Likes Received:
    842
    Occupation:
    Software Programmer
    Location:
    USA
    Looks like it'll be a bit confusing at first integrating it my spaghetti pile, but thanks.
     
  4. smack

    smack Junior Member

    Joined:
    Feb 1, 2010
    Messages:
    182
    Likes Received:
    78
    Occupation:
    Software Engineer/Evil Genius
    Location:
    inside .NET
    if it's a spaghetti pile you might be far better off rewriting it from scratch.

    if you search some of my past posts, i've put up some very good resources on multithreading in .net
     
  5. captchaman

    captchaman Junior Member

    Joined:
    Sep 16, 2010
    Messages:
    190
    Likes Received:
    842
    Occupation:
    Software Programmer
    Location:
    USA


    Yeah the interface needs some work and I do need to make it neater, thanks for the guides.

    - rch

    Edit: For future reference, it was this post that helped me the most.
     
    Last edited: Mar 22, 2011
  6. mailhelper

    mailhelper Registered Member

    Joined:
    Mar 23, 2011
    Messages:
    88
    Likes Received:
    10
    Occupation:
    Email Marketing Expert
    Location:
    Bangladesh
    The best way to use Background Worker. It is fast and most of the dangerous part is managed by the class. I am sorry i cant post any code due to forum rules.
    Thanks.