Search for question
Question

a) Consider the code in Figure 2 (with lines numbered 1-34) and answer the questionsbelow related to processes and signals in C.

i) Indicate which process(es) handle(s) the signal. Explain your answer by describing when the signal is registered, sent and what happens after. ii) Explain the activities performed by the child process and all its outputs. iii) Describe the semantics of line 30 and explain the parameters of the function inrelation to the program shown in Figure 2. iv) Complete the statement in line 31 and indicate which process(es) perform(s) this output.

Fig: 1

Fig: 2

Fig: 3

Fig: 4

Fig: 5

Fig: 6