473,785 Members | 2,612 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Inter-process comms - which method?

Hi,

I am developing some software in C++ to access a PMC card in a PC. The PMC
card comes with a set of C++ libs to access it and to handle interrupts from
it. I am therefore writing entirely in C++ at the application level and have
no access to the device driver for the PMC.

My design involves:
- a single process running on the host machine to handle all DMAs from the
PMC to the host.
- a set of libraries that applications must link with in order access the
DMA data received from the PMC.

The DMAs handled by the single process transfer data for a number of host
application processes that link with my libraries., ie. each block of DMA'd
data is for one application. My DMA process must wake this application and
let it know that data is available for it. These application processes must
block while waiting for data to be made available to them by the DMA
process. I do not want them to have to poll.

My question is this. What is the best way for the DMA thread to communicate
with my library code to inform the application process that data is
available?

The DMA thread will probably also have to tell the application (library
code) where the data is, so more than just a signal is probably required.

(I don't believe actually getting at the DMA data is a problem as I can
implement it in a shared memory block, it's the handshake between the DMA
process and library code that concerns me.)

The final target is a Linux machine but the PMC libs are also available for
Windows which is where I have started to develop it. Ideally I'd like a
solution that fits both but it must work with Linux.

Many thanks in advance.

Steve

----
Steven Townley
Stockport, England
Aug 21 '05 #1
2 1285

This is off topic for comp.lang.c++.

Steve T wrote:

My question is this. What is the best way for the DMA thread to communicate
with my library code to inform the application process that data is
available?


I would probably use somthing similar to the X server i.e. Unix domain
sockets.

Aug 21 '05 #2
My apologies if this was off-topic. I was hoping there was perhaps a C++
specific wrapper or library to handle this.

Perhaps someone could recommend a better group then...?

"Gianni Mariani" <gi*******@mari ani.ws> wrote in message
news:UJ******** ************@sp eakeasy.net...

This is off topic for comp.lang.c++.

Steve T wrote:

My question is this. What is the best way for the DMA thread to
communicate with my library code to inform the application process that
data is available?


I would probably use somthing similar to the X server i.e. Unix domain
sockets.

Aug 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1930
by: Naser | last post by:
How can I change the text of a textbox in a form of a .NET application, By clicking a button in a form of an other .NET stand alone application? I know that DDE is no longer supported in the .NET framework. I may use XML to do that but I don't know how? please help me
1
1443
by: Tertius Cronje | last post by:
Hi All, Q: Is it possible for a thread on SocketServer.ThreadingTCPServer to get the socket info of *other* open thread/s and use that info to send data to the accepting client? I wrote a socketserver using SocketServer.ThreadingTCPServer. A client is connected to the server and expects multiple request/responses. (Not sure about the terminology but the client connects and then stay connected for a while.)
1
1824
by: David M. Karr | last post by:
I've been asked to help debug a complex problem involving inter-frame references, so I just want to understand the elements involved with this. Apparently, there is a page with multiple frames, where one of the frames is a "hidden" frame, and is there just to contain one or more "fields" that are referenced from other frames. Supposedly, if a user "sits" somewhere in this set of pages for several minutes and then tries to do...
13
4150
by: Bern McCarty | last post by:
I have run an experiment to try to learn some things about floating point performance in managed C++. I am using Visual Studio 2003. I was hoping to get a feel for whether or not it would make sense to punch out from managed code to native code (I was using IJW) in order to do some amount of floating point work and, if so, what that certain amount of floating point work was approximately. To attempt to do this I made a program that...
6
16718
by: les | last post by:
Here's a class which uses 2.0 generics to implement an inter-thread message queue in C#. Any number of threads can post and read from the queue simultaneously, and the message object can be any type. There's a test driver at the bottom which demonstrates usage. /*-----------------------------------------------------------------------------------------------------*/ using System; using System.Collections.Generic;
7
4596
by: Sumedh | last post by:
Hi everyone There is a C# project which calls C++/CLI dll to be able to call native C++ including templates. But the C++/CLI code itself also requires the C# dll to get the types. For example: C#: class Test1 {
1
4967
by: Laurence | last post by:
Hi folks, As I konw: database partition (aka data partition?), the database can span multiple machines; table partition, the data within a table can seperate by certain condition. How about inter-partition and intra-partition? Is inter-partition database partition...?
0
1490
by: rkprasad | last post by:
I am able to create BASIC-CLEAR-INTEGRATED sql http endpoint and consume it on a LAN. But i am not able to consume the created endpoint on inter domain network. If i create endpoint on a server having live IP and try to access it as http://59.165.20.29/SqlHttpEndPointPath?WSDL from a LAN which has its own proxy then I am not able to access it ; and get HTTP 500/HTTP 501 error in the browser. In a different way i create an sql http endpoint...
1
2214
by: rsennat | last post by:
Hi, what is the order of the libraries in the Makefile, for linking inter dependent libraries. i'm getting linker error for the following scenario. I have lib1.a and lib2.a, with which lib1.a needs lib2.a and lib2.a needs lib1.a for linking. How can this be resolved. any thoughts on this would be helpful. thanks rsennat
4
2244
by: Mark | last post by:
Hi, I'm relatively new to Java, but have been a programmer for decades. I would like multiple instances of my Java app (on different computers on the same local LAN) to communicate with each other through notifications of some sort. For example, when instance 1 does a certain action, instances 2, 3, and 4 should be notified about it so they can react accordingly. I'm unaware of existing Java classes that deal with this sort of thing,...
0
10336
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10155
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10095
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8978
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7502
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5383
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5513
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3655
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2881
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.