Re: Asynchronous calls

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



"nly" <nlyee2001@xxxxxxxxx> wrote:
>
>Are asynchronous calls always implemented with a separate thread?

I started to write a response in which I hedged about the use of the word
"always", but after giving it some thought, I think the answer is "yes".
Some asynchronous calls are shipped to an entirely different process, but
that's still a separate thread. Some asynchronous calls end by leaving a
requests queued up in a driver, but those will be finished later, on a
separate thread.

>Like from inside a thread, you call some function from another DLL for
>example. After the call, the former thread keeps going on with other work.
>Within the DLL, another work is carrying on and when it's finished, it will
>call back into the former thread to notify that the work is done by the
>callee.

Right, that's a common scenario. If there is work going on while your
program continues to run, then clearly there must be another thread
involved.
--
- Tim Roberts, timr@xxxxxxxxx
Providenza & Boekelheide, Inc.
.



Relevant Pages

  • Re: Parent and Child in separate UI Threads
    ... and the correct fix is NOT to put the window in a separate thread! ... DLL contains business logic, some MFC windows and some dialogs. ... EXE collaborates with DLL via interface described by IDL. ...
    (microsoft.public.vc.mfc)
  • Re: What does a structured exception look like to C++?
    ... My code is a DLL that is used by a web server app. ... the DLL runs on a separate thread, ... need to compile with /EHa, so that the objects on the stack are destroyed ...
    (microsoft.public.vc.language)
  • Re: Parent and Child in separate UI Threads
    ... some MFC windows and some dialogs. ... EXE collaborates with DLL via interface described by IDL. ... The goal is to make all DLL stuff to work in a separate thread. ...
    (microsoft.public.vc.mfc)
  • Asynchronous calls
    ... Are asynchronous calls always implemented with a separate thread? ... the former thread keeps going on with other work. ... Within the DLL, another work is carrying on and when it's finished, it will ... Prev by Date: ...
    (microsoft.public.vc.language)
  • Re: HOMEOPATHY FACTS LIST - 45 FACTS
    ... You might want to start a separate thread about your ... Probably because PM's arguments are so riddled with jargon, ... And when I give him a response in plain English, he has no respect for it ... and not those of Bar-Ilan University ...
    (misc.health.alternative)