Two concurrent applications, a1 and a2, execute the sequence…

Two concurrent applications, a1 and a2, execute the sequences of instructions (j1, j2, j3) and (k1, k2, k3), respectively. Execution switches between the applications whenever a timeout interrupt occurs or when one application terminates. If a1 starts, and interrupts occur after instructions k2 and j1, then what is the order in which the 6 instructions will execute?

Processes p1 and p2 execute on a system with a single CPU an…

Processes p1 and p2 execute on a system with a single CPU and two identical I/O devices. Each process executes a compute-bound phase followed by an I/O-bound phase. The system uses multiprogramming without time-sharing. The following table shows the lengths of each phase. p1 starts first at time 0. Without multiprogramming, the computation terminates at time  With multiprogramming, the computation terminates at time compute I/O p1 40 40 p2 10 60