Q5) (Threads) What could the output of the concurrent (threaded) execution of process A and process B
Fantastic news! We've Found the answer you've been seeking!
Question:
Q5) (Threads) What could the output of the concurrent (threaded) execution of process A and process B be? (State all possible outputs)
Process A Process B
int x = 0; int y = 0; while (x == 0) {do nothing} printf("A"); y = 1; y = 0; printf("D"); y = 1; | int x = 0; int y = 0; printf ("B"); x = 1; while(y == 0) {do nothing} printf ("C"); |
Consider a multiprogrammed system with degree of 6 (i.e., six programs in memory atthe same time). Assume that each process spends 40% of its time waiting for I/O. What will be the CPU utilization? (You can provide a formula instead of a numeric value)
Related Book For
Modeling the Dynamics of Life Calculus and Probability for Life Scientists
ISBN: 978-0840064189
3rd edition
Authors: Frederick R. Adler
Posted Date: