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?

A server accepts and processes requests from clients. The se…

A server accepts and processes requests from clients. The server keeps the results of the most recent requests in memory as a cache. A new request arrives on average every 20 ms. The processing of each request takes 10 ms. If the requested result is not in the memory cache, additional 65 ms are needed to access the disk. On average, 80% of all requests can be serviced without disk access The creation of a new thread takes 10 ms. (1) Should the server be implemented as a single-threaded or a multi-threaded process? [ans1] (2) What percentage of requests would have to be satisfied without disk access for the single-threaded approach to be feasible? Please round to the first decimal point (e.g., xx.x %).  [ans2]%