Hi to all,
My problem is as follows:
Program1 and Program2 are two separate C programs - Program1 is in Linux kernel whereas Program2 is a user space program that I've written. How can I send a signal from Program1 to Program2?
Each time Program1 is executed, a kind of signal is sent to Program2 to tell it to start its execution. But the execution of both programs needs to continue in paralell. Program1 mustn't wait for Program2 to finish its execution in order to continue. After Program2 finishes executing, it then waits for the next call (signal) from Program1 telling it to execute again.
I can't use fork() or threads because the overhead is far too much than what I can support. What is the best way that I can implement this? Signals?
Any input and examples will be very much appreciated..
Warm regards,
Visham