could it be used to send a signal to another process ( listening for an event) , like a command to do something.
I got one process creates a shared Memory ( 2MB) , waits for another process to attached to that shared Memory fill it with data ( to be processed) now I wan to send a command signal to the 1st process that shared Memory is written to and can now proceed with processing that data, once done data is written back to the shared buffer command signal send to the send process to let them know that data is process and they go ahead and copy it from there.
Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are, by
definition, not smart enough to debug it.
- Brian W. Kernighan
Bookmarks