Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

We have two jobs A and B. The execution pattern for A is CPU first IO next, and of B IO first CPU next. Each

We have two jobs A and B. The execution pattern for A is CPU first IO next, and of B IO first CPU next. Each one needs CPU time of 40mn. The IO time of A is 50% of total execution time of A. Likewise for B. Ignore context switch time or initial program load time (assume that it is zero). Total execution time is defined to be CPU time plus IO time. The unit mn stands for minute.

(a) Serial execution. What is the elapsed time (i.e. turnaround time) of A? What is it of B? Assume that A arrives ahead of B at the same time with B. What is the CPU utilization when the jobs are done? (Express it as a percentage.)

(b) Multiprogramming. Assuming that both arrive at the same time, what is the elapsed time of A? What is it of B? What is the CPU utilization (percentage) ?

(c) Multitasking (timesharing) with slice of 20mn. Multiprogramming is not available. Assuming that both arrive at the same time but A has a slightly faster arrival. What is the elapsed time of A? Of B? CPU utilization (percentage)?

(d) Multitasking (timesharing) with slice of 1mn. Multiprogramming is not available. Assuming that both arrive at the same time but A has a slightly faster arrival. What is the elapsed time of A? Of B? CPU utilization?

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

What will be your style of leadership?

Answered: 1 week ago

Question

What is Larmors formula? Explain with a suitable example.

Answered: 1 week ago

Question

1. Identify three approaches to culture.

Answered: 1 week ago

Question

2. Define communication.

Answered: 1 week ago

Question

4. Describe how cultural values influence communication.

Answered: 1 week ago