A programmer who writes programs specifically to exhibit good locality can expect marked improvement in their execution efficiency. List several strategies a programmer can use to improve locality. In particular, what high-level language features should be emphasized?

What will be an ideal response?

Some high-level features that should be emphasized are arrays and repetition statements.
These increase the amount of spatial locality because data is stored and accessed in
sequential virtual address order. Repetition statements involve temporal locality—the body
of the repetition statement is likely to be repeated (many times) in the near future.

Computer Science & Information Technology

You might also like to view...

Match the following exclusionary rules to their descriptions

I. Relevancy A. Qualified experts may testify though not eyewitnesses II. Privilege B. The evidence is valuable to an issue of the case III. Opinion of expert C. Keeps private attorney-client communications IV. Hearsay D. The evidence is what it claims to be V. Authentication E. Ruling against "out of court" statements

Computer Science & Information Technology

A server has 500GB of data that must be backed up nightly. The administrator has upgraded the old LTO2 drive to an LTO3, but the data still will not fit on a single tape. Which of the following additional steps should the administrator perform to accommodate the data? (Select TWO).

A. Enable compression on the new drive B. Reformat all tapes C. Delete unnecessary system files D. Purchase LTO3 tapes for use in the new drive E. Purchase new backup software

Computer Science & Information Technology