Solved

Asynchronous Services

Posted on 1998-09-28
2
447 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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Folder Comparison 12 52
isEverywhere  challenge 19 64
either24  challenge 19 84
haveThree challenge 22 101
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
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…
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.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

747 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now