It's UWAweek 42 (2nd semester, week 12)

help2002

This forum is provided to promote discussion amongst students enrolled in CITS2002 Systems Programming.
Please consider offering answers and suggestions to help other students! And if you fix a problem by following a suggestion here, it would be great if other interested students could see a short "Great, fixed it!"  followup message.
Displaying the 4 articles in this topic
Showing 4 of 738 articles.
Currently 114 other people reading this forum.


 UWA week 42 (2nd semester, week 12) ↓
SVG not supported

Login to reply

👍?
helpful
11:05am Wed 16th Oct, Kristiaan M.

Hi, as I understand the principle of referential locality it means that memory references are typically close together. The question asks "With reference to two distinct examples, explain The Principle of Referential Locality, and explain how an operating system kernel may use it to improve performance" What kind of examples is this question after?


SVG not supported

Login to reply

👍?
helpful
11:12am Wed 16th Oct, Joshua N.

With this type of question, you would define and explain the Principle of Referential Locality, then create two scenarios (or examples) that demonstrate how it works and how the OS can use it to improve performance. Ultimately the question is testing your understanding of Referential Locality and seeing if you can apply what you know to a given situation.


SVG not supported

Login to reply

👍?
helpful
11:40am Wed 16th Oct, Kristiaan M.

Would this be with using the memory management tools like malloc to create arrays in heap instead of stack and caching variables that get used repeatedly?


SVG not supported

Login to reply

👍?
helpful
7:47pm Wed 16th Oct, Joshua N.

"Kristiaan Maree" <24*1*7*3@s*u*e*t*u*a*e*u*a*> wrote:
> Would this be with using the memory management tools like malloc to create arrays in heap instead of stack and caching variables that get used repeatedly?
Not completely sure what you mean but you don't need to provide code for this question. Recall there are two types caching methods you can use that apply the principle of Locality of Reference and you can use two examples to demonstrate how they can be used to speed up code.

The University of Western Australia

Computer Science and Software Engineering

CRICOS Code: 00126G
Written by [email protected]
Powered by history
Feedback always welcome - it makes our software better!
Last modified  8:08AM Aug 25 2024
Privacy policy