1. (a) Describe the possible states of a process and the transitions between them. [4 marks]...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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 minimise the number of context switches? [4 marks] (c) Describe two ways of achieving load balancing for scheduling when multiple CPUs are available. [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 reasons for choosing this strategy. [8 marks] 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 minimise the number of context switches? [4 marks] (c) Describe two ways of achieving load balancing for scheduling when multiple CPUs are available. [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 reasons for choosing this strategy. [8 marks]
Expert Answer:
Related Book For
Posted Date:
Students also viewed these programming questions
-
Let r and s be solutions to the quadratic equation x 2 b x + c = 0. For n N, define d0 = 0 d1 = r s dn = b dn1 c dn2 (n 2) Prove that dn = r n s n for all n N. [4 marks] (b) Recall that a commutative...
-
Predictive text entry systems are familiar on touch screens and mobile phones. This question asks you to consider how the same principles might be used in a programming editor for creating Java code....
-
The following data were gathered to use in reconciling the bank account of Torres Company: Balance per bank ................................... $14,385 Balance per company records ...................
-
Cuomo Mining Corporation, a public company whose stock trades on the Toronto Stock Exchange, uses IFRS. The vice-president of finance has asked you, the assistant controller, to prepare a comparison...
-
The "understandability" concept is a component of several FASB ASC topics. Find, cite, and copy the relevant sections of those topics.
-
Why might it be particularly difficult to program a computer to successfully play card games like bridge or poker? What sort of algorithms might you use to play these games?
-
Adriana Corporation manufactures football equipment. In planning for next year, the managers want to understand the relation between activity and overhead costs. Discussions with the plant supervisor...
-
Humble Lions Football Club has 6 0 members. Twenty are non - playing members, paying an annual subscription of $ 1 0 0 0 0 . The remaining 4 0 members are active playing members. For 2 0 2 4 , the...
-
(a) Covid-19 has struck businesses resulting in many companies undergoing either financial difficulties or delays in providing services. Crystal Ltd is a construction company that was unable to...
-
If you were looking through stock listings and saw the following stock quote for XYZ Ltd, what would you take note of as being the bid price ?
-
Daniel's income is $60,000/yr and Danilla 's income is$40,000.Daniella has sole custody of the 3 children. According to the child support payment schedule, the flat rate is $ 770/mth. What will be...
-
What are your thoughts regarding how "bad questions" can impact a company's negatively?
-
Lila Battle has determined that the annual demand for #6 screws is 1,000,000. Lila, who works in her brother's hardware store, is in charge of purchasing. She estimates that it costs $10 every time...
-
Research, please be prepared to answer the following questions: Describe some visual storytelling best practices. Explain best practices in building usable dashboards. Please be prepared to provide...
-
A speaker emits 3.00 W of sound. (a) What is the sound level in decibels for an observer that is 6.00 m away from the speaker? (b) Suppose the volume was turned down so that the speaker only emits...
-
Catalytic hydrogenation of naphthalene over PdC results in rapid addition of 2 moles of H 2 . Propose a structure for this product.
-
Write a sequence of assembly-language instructions that multiplies the contents of memory location 10 by four. For example, if the number 10 were stored in memory location 10, executing your...
-
Make a copy of the dice.html page from Figure 7.8 and name it slides.html. Then modify this new page to serve as random slide show. You will need to store the image files for your slide show in the...
-
Design and implement a Web page named dotrace.html that allows the user to simulate a race between two dots. Your page should look something like the one in Figure 11.15. The length of the race...
-
The W14 \(\times 26\) structural A-36 steel member is used as a 20 -ft-long column that is assumed to be fixed at its top and fixed at its bottom. If the 15-kip load is applied at an eccentric...
-
The W14 \(\times 26\) structural A-36 steel member is used as a column that is assumed to be fixed at its top and pinned at its bottom. If the 15-kip load is applied at an eccentric distance of 10...
-
Determine the maximum eccentric load \(P\) the 2014-T6aluminum-alloy strut can support without causing it either to buckle or yield. The ends of the strut are pin connected. a $150 mm 150 mm 100 mm...
Study smarter with the SolutionInn App