4. Signals + Binary
Write two programs:
coder.c
./coder PID "string"
Sends string to the process PID bit-by-bit, using SIG_USR1 signal as 0 and SIG_USR2 as 1
string is terminated by zero byte (8×0 bits)
use usleep between sending signals with appropriate delay, otherwise repetitive kill(PID, SIGNAL) will be interpreted once ore reordered.
decoder.c.
./decoder
prints out it's getpid
catches two signals — SIG_USR1 and SIG_USR2, decodes and prints the resulting string