Re: Processor usage in VB program

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



John S <js162@xxxxxxxxxxxxxxxx> wrote:
As I said before, I'm fairly new to this and have to admit I don't fully
understand what you said.

I think I could work out how to run the the Listener on another thread but
don't know what blocking calls are. Is that where you tell the thread to
sleep for a short while?

No - it's where you make a call (Read, Accept etc) that doesn't return
until it's read some data, accepted a connection etc.

I don't see how accepting the calls asynchronously would help a great deal
as it's not the calls that appear to be the problem. It seems more like the
fact that because I have no idea when the next call may be sent, The listener
has to sit waiting all the time.

Yes, the listener has to sit waiting for events - but if you use a
block call, it can do so without looping round, and if you do it in a
different thread, it won't make the UI freeze.

--
Jon Skeet - <skeet@xxxxxxxxx>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
.



Relevant Pages

  • RE: Oracle connect hangs forever
    ... Subject: Oracle connect hangs forever ... that effect and the DBI connect is still waiting for it to return. ... Trace files would be huge. ... You could then move on to setting listener trace parameters. ...
    (perl.dbi.users)
  • Re: Nu?
    ... used when waiting for someone and askiing them to get back to the task. ... with the expectation that the listener will understand ... Shabbath lamps. ...
    (soc.culture.jewish.moderated)
  • Re: usage of both
    ... John O'Flaherty wrote: ... No native speaker would use it. ... It could be used for extra emphasis, to tell the listener to stop ...
    (alt.usage.english)
  • Re: become dotnet expert just by listening radio.
    ... *listener*. ... Is it a complete coincidence that your email address is ... the contact address on the web site? ... Jon Skeet - ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Omaggio Larry
    ... John D. Rimmer wrote: ... understand it as it was composed and faithfully performed, by myself, with incredibly advanced concepts and technique. ... I can only surmise that it was a deliberate signal to the listener of the impending note to come. ...
    (rec.music.classical.guitar)