Question 2 (30 marks) Memory can be defined as a collection of data in a specific format to store instructions and proce
Posted: Fri Apr 29, 2022 6:53 am
Operating Systems question
Question 2 (30 marks) Memory can be defined as a collection of data in a specific format to store instructions and processed data. The primary reason of an operating system is to coordinate programs with the information that is accessed and executed in the main memory, meanwhile, the CPU fetches instructions from memory according to the value of the program counter. (a) When virtual memory is implemented in a computing system, there are certain costs associated with the technique and certain benefits. State a type of cost and the benefit. (b) How do cache memory help improve computer performance? Why do systems not use more or larger caches if they are so useful? (c) What is the meaning of “busy waiting" running in a process? Explain a situation how it can be avoided.
Question 2 (30 marks) Memory can be defined as a collection of data in a specific format to store instructions and processed data. The primary reason of an operating system is to coordinate programs with the information that is accessed and executed in the main memory, meanwhile, the CPU fetches instructions from memory according to the value of the program counter. (a) When virtual memory is implemented in a computing system, there are certain costs associated with the technique and certain benefits. State a type of cost and the benefit. (b) How do cache memory help improve computer performance? Why do systems not use more or larger caches if they are so useful? (c) What is the meaning of “busy waiting" running in a process? Explain a situation how it can be avoided.