Question: Points I. (70 Points) Suppose a running program A is interrupted by an interrupt. Suppose after servicing the interrupt, we get back to the program
Points I. (70 Points) Suppose a running program A is interrupted by an interrupt. Suppose after servicing the interrupt, we get back to the program A. Explain (in less than 100 words) how at this point, A will have the same condition code values that it had before the interrupt Q2. (80 Points) In Fig 2.5 (A Multi-threaded...), suppose the program was called with argument 1 (so the variable loops will get initial value 1). What are the all possible values of counter printed in different runs of the program? Explain via assembly language level instructions and cpu registers Q3. (150 Points) Consider the following code int main (int argc, char argvIl) ( printf ("a"); int rcfork ); if (rc0) printf ("b") else printf ("c") return 0 Assuming forkO may or may not succeed and printf ) prints its outputs imn ediately (no process occurs, i.e., the system does not collect outputs of a process in a buffering of output of a temporary buffer and print it later), what are possible outputs of this program answer in less than 100 words ? Explain your
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
