• 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/21

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;

21 Cards in this Set

  • Front
  • Back
Virtual Memory
Involves the separation of logical memory as perceived by users from physical memory. Makes the task of programming much easier because the programmer does not need to worry about how much physical memory is available.
virtual address space
this refers to the logical (or virtual) view of how a process is stored in memory.
Demand paging
commonly used in virtual memory systems. Pages are loaded only when they are demanded during program execution. Pages that are never accessed are thus never loaded into physical memory.
Pure Demand paging
never brings a page into memory until it is required.
page fault
A trap to the software raised by the hardware when a program accesses a page that is mapped in the virtual address space, but not loaded in physical memory.
Copy-on-write
Allows the parent and child processes initially to share the same pages. If either process writes on the shared page, a copy of the shared page is created.
effective address time
As long as there are no page faults, the effective access time is equal to the memory-access time. Otherwise, first read the relevant page from disk and then access the desired word.
effective access time
EAT = (1-p) * ma + p * page fault time
Page replacement
If no frame is free, we find one that is not currently being used and free it. We can free the frame by writing its contents to swap space and changing the page table to indicate that the page is no longer in memory.
FIFO Replacement
The simplest page-replacement algorithm. Associates with each page the time when that page was brought into memory. When a page must be replaced, the oldest page is chosen.
Optimal Page-replacement algortithm
The algorithm that has the lowest page-fault rate of all algorithms and will never suffer from Belady's anomoly. "Replace the page that will not be used for the longest period of time.
Belady's Anomoly
For some page-replacement algorithms, the page-fault rate may increase as the number of allocated frames increases.
least recently used (LRU) algorithm
Associates with each page the time of that page's last use. When a page must be replaced, it chooses the page that has not been used for the longest period of time.
Second-chance replacement algorithm
The reference bit to a page is cleared, and the arrival time is reset to the current time. Makes updating faster.
least frequently used (LFU)
requires that the page with the smallest count be replaced. The reason for this selection is that an actively used page should have a large reference count.
most frequently used (MFU)
page-replacement algorithm is based on the argument that the page with the smallest count was probably brought in and has yet to be used.
equal allocation
an equal share of m frames among n processes . Leftover frames can be used as a free-frame buffer pool.
proportional allocation
allocate available memory to each processes according to its size.
global replacement
allows a process to select a replacement frame from the set of all frames, even if that frame is currently allocated to some other process; one process can take from another.
local replacement
requires that each process can select from only it's own set of allocated frames.
thrashing
When a process is spending more time paging than executing. Pages fault quickly over and over, replacing pages that must be brought back in immediately.