|
|||||||
| Forums | Search Forums | Register | Forum Rules | Man Pages | Albums | FAQ | Members | Calendar | Search | Today's Posts | Mark Forums Read |
| Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#8
|
|||
|
|||
|
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
|
|||
|
|||
|
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
|
|||
|
|||
|
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
|
|||
|
|||
|
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? 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
|
|||
|
|||
|
Quote:
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 | ||
|
![]() |
| Thread Tools | Search this Thread |
| 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 |
|
|