Results 1 to 7 of 7

Thread: [Resolved][2008]Question about multithreading

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Apr 2008
    Posts
    74

    [Resolved][2008]Question about multithreading

    Am I doing this correctly? So always if I use this multi thing I put start & join?

    Code:
        Dim MyThread1 As New System.Threading.Thread(AddressOf getlinks1)
        Dim MyThread2 As New System.Threading.Thread(AddressOf getlinks2)
    
        Sub main()
            MyThread1 .Start()
            MyThread1 .Join()
            MyThread2 .Start()
            MyThread2 .Join()
        End Sub
    
        Sub getlinks1()
            Dim ProcID As Integer
            ProcID = Shell("getlinkcollection.exe")
        End Sub
    
        Sub getlinks2()
            Dim ProcID As Integer
            ProcID = Shell("getlinkcollection.exe")
        End Sub
    Last edited by goldenix; Apr 15th, 2008 at 05:49 PM.

    M.V.B. 2008 Express Edition

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width