Application with communication between process


 
Thread Tools Search this Thread
Top Forums Programming Application with communication between process
# 8  
Old 05-20-2012
Thank you very much for help

My problem is: I want to create an application strongly coupled (with inter-process communication) in C to do it's checkpoint, I have to saved the state of the process and also the state of communication channel..

Thank you so much
# 9  
Old 05-20-2012
Sorry, to ask again, but: what do you want to do - or, to phrase it differently, what is the application supposed to do?

OK, it should be "strongly coupled", i have understood that, but: what is it to do that needs strong coupling? "to do its checkpoint" as you said is not understandable for me (and probably for the others here too).

I can understand if you don't want to disclose your ideas but in this case you should be aware that our help will be of very limited value if of any value at all.

bakunin
This User Gave Thanks to bakunin For This Post:
# 10  
Old 05-20-2012
Thank you very much for your answers
I'm sorry if I have not explained my problem well

I want do the checkpoint of an application strongly coupled
that is my goal(developping a tool that does the checkpoint of
this application)

As a first step:I have to create such application ,that's why i ask about an api which let me to have such application

Thank you so much for help
# 11  
Old 05-20-2012
Quote:
Originally Posted by chercheur857
I want do the checkpoint of an application strongly coupled
OK, maybe I am a bit slow, but i haven't understood what you mean the first time and i don't understand it now.

If i get you correctly you want to write an application. When this program comes to a certain point of its execution you want other applications (parallel running instances of the same application?) be aware of that fact. Is that correct?

If so, then a simple semaphore file would suffice, yes? You simply create this file and query its existence from the other instances you run. This would be a "passive" (polling) approach.

The "active" variant would be that the application doesn't set a flag (the file) and wait for other instances to become aware of its existence, but actively notify the other instances. You could use a signal for this. When the program gets to the certain point it will work through a list of PIDs with the programs to notify and send every one of them a certain signal (issue kill -l on your system for a list of supported signals, see the man page of sigaction() for how to install POISX-compliant signal handlers).

I hope this helps.

bakunin
This User Gave Thanks to bakunin For This Post:
# 12  
Old 05-21-2012
Quote:
If i get you correctly you want to write an application. When this program comes to a certain point of its execution you want other applications (parallel running instances of the same application?) be aware of that fact. Is that correct?
Thank you for your help
I want to write an application strongly coupled to each x seconds I save the state of this application on a storage medium for in case of failure of a node I restart the application from a checkpoint et not from the begining
As a first step: I have to create Such application (application strongly coupled), that's why i ask about an api Which let me To Have Such application

Thank you soooo much
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Needs help in launching a console application with the help of daemon process

Hi All, I am facing problem in launching a application with the help of a daemon process. Actually the application is based on command line that reads various commands for controlling the application from the console and accordingly executes those commands. The application always interact with... (3 Replies)
Discussion started by: gopallinux
3 Replies

2. Shell Programming and Scripting

cron for windows, process is OK, but application is not opening

Dear All, I need a help. i have an mapped drive application. I want to start this application using cron. I have downloaded cron setup from the below link: www.kalab.com/freeware/cron/cron.htm And it crontab file works fine. But if i want to start an application. Then process... (2 Replies)
Discussion started by: vasanth.vadalur
2 Replies

3. Programming

C program using IPC (inter process communication)

i want to write a C chat program that communicates over IPC(inter process communication), that could be run using 2 seperate terminal windows within the same computer. so that wat u type in one terminal window , should appear on the other and vice versa... could some one please help me with the... (2 Replies)
Discussion started by: localp
2 Replies

4. Linux

Socket communication and timer application

tcp communication application i have an application which run in 1) while() {in } and listens for some request When a request comes to create a file(containing some data fetch from somewhere) but i also want to start some timer that after 10/20 min delete that file But i don't know how... (0 Replies)
Discussion started by: tryit
0 Replies

5. UNIX for Dummies Questions & Answers

socket communication and timer application

i need to develop application which continuously wait for a request from multiple host and on receiving a request on that need to create a log file and after 30 mins delete that file I am new to socket programming so could anyone help me on this. How to continuously listen for a request How... (0 Replies)
Discussion started by: tryit
0 Replies

6. UNIX for Advanced & Expert Users

Inter-process communication:pipes,doors,etc.

Hi, I am thinking about writing a log daemon for a multi-processed ksh application (yes - I know that high-level language would be a better option). My question is as follows: If many processes (many scripts) will try writing to a single log file: print "message" > common.log Will it work or... (2 Replies)
Discussion started by: adderek
2 Replies

7. Programming

Problem with signals - 3 process communication

Hello, I would like to ask you for a little help with program I'm working on. I have problems with signals and synchronizing processes (I'm quite new to this part of programming). Process "parent" creates new child process "child1" and this process creates new child process "child2". The... (2 Replies)
Discussion started by: Nightwright
2 Replies

8. Programming

signal in process communication

signal in process communication: I 'm a example in sun_unix that signal in process communication It's here down but I only have freebsd in my machine. how can i do the same in freebsd eg: #include <stdio.h> #include <signal.h> #include <unistd.h> int main( void ){ void... (2 Replies)
Discussion started by: a9711
2 Replies

9. Programming

Inter Process Communication

unix IPC i would like to know the method of usage of semaphores on shared memory segments the topic seems very difficult to understand mainly when difrent proceses communicate instantly and how do i avaoid deadlock situation (2 Replies)
Discussion started by: kamathanil
2 Replies
Login or Register to Ask a Question