Explanation of how static relocation works

Assignment Help Chemistry
Reference no: EM131023483

a) Simplistically, the operating system kernel is just a computer program, one that manages the hardware and allows the user to perform tasks on a computerised device. When considering other computer programs such as word processors, text/code editors, and so on, it is possible to substitute one program with another of the same type to achieve the same task, e.g., you could substitute Microsoft Word with Apple Pages or LibreOffice Writer. Identify whether or not it is possible to substitute the operating system kernel in the same way. Explain why this was / was not possible.

b) Consider the following table of processes:

Draw diagrams to illustrate the execution of these processes using the following CPU scheduling algorithms: FCFS, SJF, SRTN, and RR. Calculate the wait time and turnaround time for each process. For Round Robin, use a timeslice of two and if a process arrives at a time index when a context switch occurs the arriving process is added to the ready queue after the running process.

Note: wait time is the total time spent by the process waiting in the ready queue, i.e., the process is ready to run but the CPU is being used by another process.

c) CPU scheduling algorithms tend to favour I/O bound processes instead of CPU bound processes. The main reason for this is because it results in better utilisation of the computer's hardware.

i) Given that the main work done by a computer is done by the processor, explain why favouring CPU bound processes (which primarily use the processor) does not result in better utilisation of the computer's hardware.

ii) The Round Robin algorithm does not favour I/O bound processes. Explain why, and what changes could be made to fix this problem.

Question 2

a) The use of a memory abstraction provides several benefits, however also introduces overheads that are not incurred when using physical memory addressing. Such overheads can occur (1) when the process is reading or writing to memory; and (2) for operations performed on the process itself (such as a system call). For each category, explain why these overheads occur and how it is possible to reduce and/or eliminate the overheads entirely. If it is not possible to reduce or eliminate the overheads, explain why. For (2), consider the system call to terminate a process.

b) Operating systems can perform memory management using either variable sized allocations, e.g., contiguous memory allocation, which allows the operating system to see and manage free regions of memory, or fixed size allocations, e.g., pages, where the operating system is unable to see the free regions of memory. For an operating system's perspective ofthese two approaches, identify which of these approaches will be the most efficient in terms of (i) minimum computation (when allocating/de-allocating memory), and (ii) minimum wastage of memory. For each case, explain why.

c) In modern paging-based memory management systems, it would be possible for a process to access a page in its virtual address space that is loaded into a physical page frame, however a page fault could still occur. Explain the basics of how paging works and how page faults work as the foundation to your answer, then explain why it would be possible for a page fault to occur for a page already loaded in memory (see marking scheme for further information).

Question 3. Consider the following scenario. You are working for a company attempting to develop the next generation of mobile phone. Recently, the project lead indicated their disappointment with the performance/responsiveness of the device and proposed to use static relocation to allow processes to access memory directly, improving performance. To minimise the overhead of static reloading, the project manager suggested writing the modified executables to storage for reuse the next time the program is loaded. When the project lead proposed this during the last project meeting, you indicated that this was not a viable solution. You also highlighted how one process would have the ability to read and write the memory of other processes on the system. The project lead has now sent you an email asking for your input on how to proceed:
From: [email protected]

To:

Subject: Mobile OSes and Static Relocation

Hi ,

I wanted to follow-up on the discussions we had at the last project meeting, where you recommended against proceeding with my proposal to use static relocation for memory management on our new mobile platform. Given the limited time we had during the meeting I'm notconvinced I understood what you were saying properly

After further investigation, I am still convinced this would be the best approach. Whilst I understand that using protected memory approaches are commonplace in computing today, I also recognise that using static relocation and the performance benefits achievable using that approach could represent a significant competitive advantage for us. I understand the security concerns you raised, however I believe we can develop our app certification program to ensure this would not be an issue.

Can you please explain your concerns to me again and provide your recommendation on how we should proceed?

Hint:From the information above, in your response you will need to explain how static relocation works, how processes use physical memory addressing, how one process can read/write the memory of the other processes, and why this represents a security problem. Given that this will be a more detailed response than comments you supposedly made at the meeting, you should expand on these issues and may introduce any additional additional issues you feel are relevant. Your response should be approximately two pages in length.
Marking Scheme

Question 1.

Part (a)

-Correctly identifies that it is OR it is not possible. o(4 marks) Explanation of why it is OR it is not possible.

Note: Marks are only awarded for explaining a correct answer, not an incorrect answer.

Part (b)

illustration of First Come First Served (FCFS) illustration of Shortest Job First (SJF) illustration of Shortest Remaining Time Next (SRTN) illustration of Round Robin (RR) wait times (0.5 mark for each algorithm) turnaround times (0.5 mark for each algorithm)

Part (c)(i)

- Explanation of why better hardware utilisation results.

Part (c)(ii)

- Explanation of why RR doesn't favour I/O bound processes.

- Explanation of what changes could be made to fix this problem.

Question2.

Part (a)

- Explanation of overheads for processes reading/writing memory.

- Explanation of how to reduce/eliminate read/write overheads OR explanation of why it isn't possible.

- Explanation of overheads for operations on processes.

- Explanation of how to reduce/eliminate process operation overheads OR explanation of why it isn't possible.

Part (b)

- Correctly identifies which approach minimises OS computation.

- Explanation of why that approach minimises OS computation.

- Correctly identifies which approach minimises memory waste.

- Explanation of why that approach minimises memory waste.

Part (c)

- Explanation of how paging systems work, including virtual address space, physical address space, pages, and page frames.

- Explanation of what causes a page fault and how it is handled by the operating system.

- Explanation of why a page fault could occur even though the page is loaded in a page frame.

Question 3

- General structure and appropriate language used in your response;

- Explanation of how static relocation works;

- Explanation of how processes use physical memory addressing for static relocation;

- Explanation of how one process can read/write the memory of another process;

- Explanation of why reading/writing other processes memory is a security problem;

- General discussion and addressing of any other issues; and

- Final recommendation and justification for your recommendation.

Reference no: EM131023483

Questions Cloud

Calculate the difference between personal income : Use these values to calculate the difference between personal income and disposable personal income. What does this value represent?
Compute the marginal product of labor : What advice would each school give in terms of fiscal and monetary policy? What do the two schools of thought agree on? Respond in a few paragraphs.
Compute the growth rate of nominal gdp : Compute nominal GDP in 1980, 1990, and 2000. Do you observe a trend in the data? Compute the growth rate of nominal GDP from 1980-1990 and 1990-2000. Using 1980 as the base year, compute real GDP in 1980, 1990, and 2000. Compute the growth rate of r..
How many shares of common stock were issued : What was the company’s book value at the end of 2005?2006?The shareholders equity section of Valade Corp’s balance sheet is:
Explanation of how static relocation works : Given that the main work done by a computer is done by the processor, explain why favouring CPU bound processes (which primarily use the processor) does not result in better utilisation of the computer's hardware.
Discuss the importance of the setting : Discuss the importance of the setting. Discuss how the writer presents an important theme in the novel. Option Two: You may depart, if you like, from our previous discussion prompts and write about one of the following: Discuss an especially strong o..
What is the purpose of quenching and tempering steel : What is the purpose of quenching and tempering steel? What factors probably contributed to the scatter in the hardness data?
Mental distance : "Mental distance" from a rough draft can be achieved by ________.  waiting 24 hours before revising
Percent of the price of the products : Briefly discuss the accuracy of the following statement: "Corporate profits are much too high: Most corporations make profits equal to 50 percent of the price of the products they sell."

Reviews

Write a Review

Chemistry Questions & Answers

  How many minutes are required to deposit spoon

Question- A spoon is to be electroplated with gold using 1.0 m AU(NO3)3 and 2.57 A of current. How many minutes are required to deposit 5.50 grams of gold on the spoon

  Compare the release in the scrubbed flue gas

Compare the release of S02 in the scrubbed flue gas (determined in Problem 14.6) with the EP A limit of no more than 520 nanograms S02 per joule of heat input to the boiler.

  Describe sodium sulfate is slowly added to a solution

Sodium sulfate is slowly added to a solution containing 0.0500 M Ca2 (aq) and 0.0370 M Ag (aq). What will be the concentration of Ca2 (aq) when Ag2SO4(s) begins to precipitate

  Depict orbital energy-level diagram of the nf molecule

Nitrogen monofluoride, NF, can serve as a ligand in transition-metal complexes. a. Prepare a molecule orbital energy-level diagram of the NF molecule, showing clearly how the atomic orbitals interact.

  Calculate the mass of a single particle of na2so4

Consider a random mixture containing particles of Na2SO4 and K2SO4. There are 13.31 g of Na2SO4 (density 2.627 g/mL) and 86.69 g of K2SO4 (density 2.444 g/mL) in the mixture. All particles in the mixture have a uniform spherical radius of 0.091 mm..

  Meles zenawi foundation inaugural symposium

On Friday, Rwanda hosted the Meles Zenawi Foundation's inaugural symposium on development with delegates rooting for the integration of the late Ethiopian leader's view of the relationship between the Government and Business in Africa's governance..

  Compute how long it would take to cook egg

Calculate how long it would take to cook a traditional three-minute egg on top of Mt. McKinley in Alaska on a day when the atmospheric pressure there is 355 torr.

  Explain the major product when p-fluoroanisole reacts

What is the major product when p-fluoroanisole reacts with sulfur trioxide and sulfuric acid. If applicable, minimize formal charges via expanded octets.

  Determine the molar amounts of no and o2

Determine the molar amounts of NO, O2 and NO2 after a complete reaction. NO=? O2=? NO2=?

  The carbon dioxide is heated in a constant pressure process

Carbon dioxide is heated in a constant pressure process from 15C and 101.3kPa to 86C Determine per unit mass the changes in:internal energy,volume

  Evaluate the mass of h2o2 required to react

Each mole of cyclohexene reacts with four moles of H2O2 to give adipic acid. You added about 3.6 grams of H2O2 to your reaction mixture (12 grams of a 30% solution were added). Calculate the mass of H2O2 required to react with 2.00g of cyclohexene..

  Calculate number of grams of aluminum required to prepare

Calculate the number of grams of aluminum required to prepare 500.0g of chromium metal.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd