Assume ur Module is X,ur colegues module us Y
let his module run as a seprate process, and urs also a seprate process,
if you are depend on his outputs, you create, ur process does ur work and go for a sleep for some time
when the module Y finishes its processing, let that process write into a pipe (by using pipe () ), u can use a signal on this pipe in such a way that when ever some thing is avilable on this pipe the signal will invokie u from sleep
or u can do a blocked read
Quote:
Originally Posted by madhu542
Hi,
My task is to design one program in c-language, and my collegue's is another program to design and do some other functionality. I need to execute my collegue's program with out directly copying the code.
So, I am using system() command to execute his program which is working fine but, I need to use some of the intermediate values of my collegue's program but system command is returning only success or failure.
please tell me is there any commands similar to the system and which I can use the intermediate values of one program into another.
I stuck in the middle of my project could any please help me with your expertise...
Thanks & Regards,