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

  Steps in the mechanism for the following reaction

Show all the steps in the mechanism for the following reaction, When benzene is mixed with deuterated sulfuric acid, deuterium is slowly incorporated onto the ring. Show the mechanism for this reaction and explain how this relates the sulfonation of ..

  Prior to placing piece of metal into the graduated cylinder

This assignment inhibits chemistry Laboratory Questions.

  Write the structures of the saytzeff elimination

Write the structures of the saytzeff elimination

  Calculate ph - chemistry questions

Chemistry Questions on Calculate P H

  How many mols of hydrogen can produce

how many mols of H 2 can produce

  Analysis of corrosion mechanisms

Analysis of corrosion mechanisms and preventative measures

  Chemical and pharmaceutical science

Write an equation for the formation of an acetal from reaction of excess methanol with benzaldehyde in the presence of an acid catalyst.

  Calculate the approximate sulphur

Calculate the approximate SO 2 mass emission in lb/day.

  What is the structure - stereochemistry

What is the structure (including functional groups)? Stereochemistry (racemic or single enantiomer)?

  Design a qualitative analysis scheme

Design a qualitative analysis scheme

  What will be the resultant pressure

What will be the resultant pressure when the stopcock is opened?

  The 1h nmr spectrum

Integrals for some of the resonances in the 1H NMR spectrum are higher than they should be due to the shear number of hydrogens in this compound

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