Solved

Asynchronous Services

Posted on 1998-09-28
2
454 Views
Last Modified: 2013-11-20
I need to provide asynchronous services inside a DLL (e.g. some functions execute in the background and post a completion event to the owner).  Requests from the application should be queued to shared memory and executed by the DLL FIFO.

I realize I can do this using memory-mapped files and a "shared memory manager" should handle the requests and forward them to the DLL service.  Due to my inexperience with such architectures, I only have a vague idea on a possible implementation.

Anyone out there who did a similar project? Books (Windows or MFC), links, and other references are welcome!

P.S. Specifically, I am doing a WOSA/XFS service provider.
0
Comment
Question by:ealva
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 2

Accepted Solution

by:
rajesh032097 earned 300 total points
ID: 1322664
I assume you are talking about NT since it is much easier to do what you want on NT. In that case you can refer to book "Advanced Windows" specifically chapter on device I/O. It describes usage of I/O completion ports to write services. You should write a COM object which the the application will create and then call it's methods. Inside the COM object, you can create a pool of threads and make them wait for client requests using the I/O completion ports architecture. You can pass a callback interface pointer to this object which it can use to report back completion of work. If you describe in more detail about exact scenario, I can give you more info.

0
 

Author Comment

by:ealva
ID: 1322665
Sorry for the delay.  Anyway, thanks for the info.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question