Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Asynchronous Services

Posted on 1998-09-28
2
Medium Priority
?
458 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 1200 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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

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…
Ready to get certified? Check out some courses that help you prepare for third-party exams.
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.
Loops Section Overview
Suggested Courses

782 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