Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. (a) Describe the possible states of a process and the transitions between them. [4 marks] (b) What is a context switch? Why is it

image text in transcribed

1. (a) Describe the possible states of a process and the transitions between them. [4 marks] (b) What is a context switch? Why is it important for the operating system to [4 marks] minimise the number of context switches? (c) Describe two ways of achieving load balancing for scheduling when multiple [4 marks] (d) Consider a shop which sells music. The website needs to serve three kinds of queries. The first one is a query about available titles, which requires little computation and needs to be answered fast. The second one is a preview of music chosen by the customer. This needs to be generated on demand. This process is computationally intensive but needs to be answered reasonably fast. The third kind of query is downloading whole pieces of music. This is computationally intensive as well but does not need to be answered fast. All computations happen on the same server. Assume that each query generated a new process. Describe a suitable scheduling strategy for such a scenario. Your scheduling strategy should maximise throughput. You should also explain your 8 marks CPUs are available. reasons for choosing this strategy

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

Relational Database And SQL

Authors: Lucy Scott

3rd Edition

1087899699, 978-1087899695

More Books

Students also viewed these Databases questions

Question

How do modern Dashboards differ from earlier implementations?

Answered: 1 week ago