Results 1 to 3 of 3
I have an application I'd like to monitor using shared memory (or anything else that makes sense). It is written in C++ and I have multiple threads. The general design ...
- 06-20-2007 #1
Looking for recommendations on shared memory access
I have an application I'd like to monitor using shared memory (or anything else that makes sense). It is written in C++ and I have multiple threads. The general design is that it detects files being sent via ftp and kicks off a thread to
do processing of that file. Other threads are set up to do downstream processi
ng if necessary and to do periodic maintence and reporting.
I'd like to be able to "reach" into the application to meter these threads to se
e what their current status is, the last time they were active and some other me
asurements. Obviously I'll have to modify the application to calculate and store these values. I'm thinking shared memory is perhaps the best way to do that from another appication and wonder if there are any libraries that would make this easier? Or can someone point me to some on line resources to roll my own. I've googled for shared memory and Linux but what I've been able to find are IMHO unecessarily complex for my simple application, which is stuffing a structure or object into shared memory with read access only from the monitoring program.
Any suggestion as to the best way to tackle this problem?
Thanks,
Jim.
- 06-21-2007 #2
...i didn't understand you proble...If you want to learn about shared memory ...then try goolge - beej + ipc
- Lakshmipathi.G
-------------------
FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
-------------------
- 06-24-2007 #3
I did google
And got a few hits that were useful. What I didn't get and was asking about is alternatives to solving the problem of monitoring a running application with another app.
The second thing I was looking for that google didn't turn up was perhaps a C++ library that makes using shared memory easier.
Jim.


Reply With Quote