4. Signals + Binary

Write two programs:

  1. 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.

  2. decoder.c.

    • ./decoder

    • prints out it's getpid

    • catches two signals — SIG_USR1 and SIG_USR2, decodes and prints the resulting string

HSE/ProgrammingOS/Lab_18_Test/Signals_Binary (последним исправлял пользователь FrBrGeorge 2020-05-23 20:16:23)