473,320 Members | 1,804 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

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 1258

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*******@mariani.ws> wrote in message
news:UJ********************@speakeasy.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
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...
1
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...
1
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,...
13
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...
6
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...
7
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: ...
1
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...
0
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...
1
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...
4
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...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.