About multithreading

  • Thread starter Thread starter Serge Bollaerts
  • Start date Start date
S

Serge Bollaerts

Hello everybody,

I'm creating (Hum... trying to:) a small proxy server based on a sample I
found on the net. Could someone explain me the difference between
clientThread1 and clientThread2??? There something mystic I cannot
realize...

Dim clientRequest As New ProxyClient(_svrSocket.AcceptSocket())
Dim clientThread1 As New Thread(AddressOf clientRequest.Process)
Dim clientThread2 As New Thread(New ThreadStart(AddressOf
clientRequest.Process))

Thanks a lot,
Serge
 
According to the documentation for the ThreadStart delegate VB will
automatically call the ThreadStart constructor for you. clientThread1 and 2
will execute the same code on two different threads.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Multithreading Help 6
Multithreading and ASP.net 2
ThreadPool VS Thread 7
Multithread and Sockets 4
Multithreading in asp.net - pls reply 2
Memory oddity 2
One for the multithreading Gurus 6
Multithreading dilemma 9

Back
Top