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.
 
Back
Top