Go Back   The UNIX and Linux Forums > Top Forums > Programming


Programming Post questions about C, C++, Java, SQL, and other programming languages here.

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #8  
Old 05-20-2012
Banned
 
Join Date: Mar 2012
Posts: 98
Thanks: 49
Thanked 1 Time in 1 Post
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
Sponsored Links
    #9  
Old 05-20-2012
bakunin bakunin is offline Forum Staff  
Bughunter Extraordinaire
 
Join Date: May 2005
Location: In the leftmost byte of /dev/kmem
Posts: 3,383
Thanks: 29
Thanked 480 Times in 376 Posts
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
The Following User Says Thank You to bakunin For This Useful Post:
chercheur857 (05-20-2012)
Sponsored Links
    #10  
Old 05-20-2012
Banned
 
Join Date: Mar 2012
Posts: 98
Thanks: 49
Thanked 1 Time in 1 Post
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
bakunin bakunin is offline Forum Staff  
Bughunter Extraordinaire
 
Join Date: May 2005
Location: In the leftmost byte of /dev/kmem
Posts: 3,383
Thanks: 29
Thanked 480 Times in 376 Posts
Quote:
Originally Posted by chercheur857 View Post
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
The Following User Says Thank You to bakunin For This Useful Post:
chercheur857 (05-21-2012)
Sponsored Links
    #12  
Old 05-21-2012
Banned
 
Join Date: Mar 2012
Posts: 98
Thanks: 49
Thanked 1 Time in 1 Post
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
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
C program using IPC (inter process communication) localp Programming 2 12-12-2008 08:24 AM
Socket communication and timer application tryit Linux 0 06-07-2008 05:58 AM
socket communication and timer application tryit UNIX for Dummies Questions & Answers 0 06-06-2008 04:35 PM
signal in process communication a9711 Programming 2 06-22-2002 08:16 PM
Inter Process Communication kamathanil Programming 2 08-07-2001 06:32 AM



All times are GMT -4. The time now is 02:28 AM.