Week 7 and 8 Flashcards
What is Belady’s Anomaly?
In Page Referencing the phenomenon in which increasing the number of page frames results in an increase in the number of page faults for certain memory access patterns
local vs global frame allocation
local: choose from a frame already owned by process (number of frames is fixed, cannot surrender extra pages)
global: processes can steal frames from other processes (allows pages to be reshuffled, more commonly used)
What is thrashing? how do you detect it? and how do you fix it
Thrashing occurs when there is not enough page frames so you constantly keep page faulting (can detect because the page fault frequency is high and CPU utilization low)
- to fix it put processes to sleep and reallocate their pages
What do you do if the page fault rate is too small?
take frames away
What do you do if the page fault rate is too large
give the process more frames (may have to suspend another process to give more frames)
What is a segment?
A segment is a separate logical address space used for various elements of the program process
What is the file system?
Abstract layer above secondary storage (system most people interact with) - smallest allotment of secondary storage, all user data stored in files
Single level directory vs two level directory
single: organization difficult (small disks)
Two: top level is directory, second level is user file directory, files are in user directories, path concept
what is mounting?
Before a directory is accessible to the file system it must be mounted
- operating system checks the disk to make sure it has a valid file system on it
- loads info about the file system into internal structures for future access
What is a mount point?
Where a file is accessed through
The first mounted system is mounted at location ‘/’ - know as the what? of the file system?
root
What are the levels of the file system
- logical file system
- file organization level
- basic file system
- I/O control
- devices
What is the boot control block?
block containing code to start the operating system
What is the partition control block?
aka the super block. Controls information inside of the partition
What is the file control block?
one for each file. Contains information about each file