

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
A quiz for the cs241 system programming course, with questions related to signals, signal masks, signal handlers, and scheduling policies. Students are required to identify the correct answers for each question, which cover topics such as what a signal is, what a process signal mask contains, the effect of sigprocmask function on signal handling, and the role of sigaction function and signal handlers.
Typology: Quizzes
1 / 2
This page cannot be seen from the preview
Don't miss anything!


Note: Completion of quiz is an individual effort. The quiz takes 10 minutes. The student gets additional 5 points for taking the quiz. Each question has ONLY ONE ANSWER!!!
sigprocmask(SIG_BLOCK, &intmask, NULL); for (i=0; i<100; i++) y=i++; sigprocmask(SIG_UNBLOCK, &intmask, NULL);
What happens in this code? a. SIG_INT signal will be added to the signal mask intmask in the middle of the calculation of y b. Calculation of y can be interrupted during its execution with signal SIG_INT c. Calculation of y can not be interrupted during its execution with signal SIG_INT
Process ID Burst Time Arrival Time P1 10 0 P2 5 0 P3 15 0
and let us assume for the Round-Robin Scheduling policy that the time quantum is 5 time units. Under these assumptions, consider the following claim: The process P2 finishes earlier when scheduled with Non-Preemptive Shortest Job First scheduling policy than with Round-Robin scheduling policy. The claim is a. True b. False