• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/10

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

10 Cards in this Set

  • Front
  • Back
Program calls on buffer manager when it needs block from disk
The requesting program is given the address of the block in main memory, if it is already present in the buffer.
Program calls on buffer manager when it needs block from disk
If the block is not in the buffer, the buffer manager allocates space in the buffer for the block, replacing (throwing out) some other blocks, if necessary to make space for new blocks.
Program calls on buffer manager when it needs block from disk
The block that is thrown out is written back to the disk only if it was modified since the most recent time that it was written to/fetched from the disk.
Program calls on buffer manager when it needs block from disk
Once space is allocated in the buffer, the buffer manager reads in the block from the disk to the buffer, and passes the address of the block in the main memory to the requesting program.
LRU strategy
Most operating systems replace the block least recently used
LRU
Use past reference of block as a predictor of future references
Pinned block:
memory block that is not allowed to be written back to disk
Toss immediate strategy:
frees the space occupied by a block as soon as the final record (tuple) of that block has been processed.
Most recently used strategy
system must pin the block currently being processed. After the final tuple of that block has been processed, the block is unpinned, and it becomes the most recently used block.
LRU can be a bad strategy
for certain access patterns involving repeated sequential scans of data files