Solved

Asynchronous Services

Posted on 1998-09-28
2
452 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
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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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

Suggested Solutions

Title # Comments Views Activity
VB.NET how to use the Vertical ScrollBar 5 113
Looking for a specific application/software 2 114
List out all word 7 316
tripleUp challenge 7 86
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

791 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