Re: Threads very slow

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Not to mention you have both those threads running full throttle without yielding processor time when there is no work to do ... of course it's going to consume your cycles.... but then that would only apply if you are using Recieve vs. BeginReceive ..

John


Andy wrote:
BeginAccept shouldn't be in a loop.

Call it once. Then when the connection occurs, your method will be
called to handle the connection event.

To receive a packet, use Recieve or BeginReceive.

.



Relevant Pages

  • Re: Threads very slow
    ... Hi John, could you please be a little more specific? ... Andy wrote: ... called to handle the connection event. ... To receive a packet, use Recieve or BeginReceive. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Threads very slow
    ... BeginAccept shouldn't be in a loop. ... called to handle the connection event. ... To receive a packet, use Recieve or BeginReceive. ...
    (microsoft.public.dotnet.languages.csharp)