Try it on paper first. A hint, the key idea and the worked solution are here when you need them.
A computer has one processor core. Five programs are open. The operating system gives each program a turn of ms, one after another, round and round.
The operating system manages files, handles interrupts, provides an interface, manages peripherals and drivers, manages memory, manages multitasking, provides a platform for running applications, provides system security and manages user accounts. In multitasking, programs take short turns on the processor, so they seem to run at the same time.
Have you tried it?
Work it out on paper first. It is fine to get stuck or make a mistake: that is how we learn. When you are ready, go through the solution one step at a time, and check each step against your own.
Step 1. The wait. The other programs each have ms: ms.
Step 2. One round. All turns take ms.
Step 3. Turns in a second. rounds, so each program gets turns.
Answer: (a) ms. (b) turns.
Check. A wait of ms plus its own turn of ms is ms, one round. So the two answers agree.
What if? Open ten programs. Each one now waits ms. This is why a computer with many programs open can feel slow.
Log in to join the discussion.
Loading…