AS8 Flashcards
The Operating System
1
Q
Virtual Memory
A
- Allows for escaping the physical limitations of RAM.
2
Q
Virtual Memory Manager
A
- Creates a logical address space for each process and divides it up into uniform chunks (memory pages).
3
Q
Memory Management Unit
A
- Maintains a page table of mag pages in the logical address space.
- Hardwares addresses in RAM.
- When a program’s code is accessed, the MMU uses the page table to translate the logical address into the actual hardware memory address.
4
Q
Page Fault/ Page Fault Handler/ Paging.
A
- An application tries to access a logical address that is not currently in physical RAM.
- VM invokes a special page handler to respond.
- The handler stops the executing current code, locates a free page, loads the page containing the data, updates the page table, returns control to program’s code. This is ‘paging’.
5
Q
Making Up Space in Physical Memory
A
- If there are no free pages, the handler must release an exisiting page. Which one is released depends on the platform.
- OS X: VM writes pages to backing store. (Disk-based repository containing backups of pages)
Moving data to backing store is called ‘paging out’, opposite is ‘paging in’.
6
Q
Disk thrashing
A
- When the system spends a disproportianate amount of time handling page faults, rather than executing code.
- Affects performance. Forces system to spend more time reading/writing.
7
Q
Kernel
A
- A software program.
- Loads applications into memory, ensuring they don’t interfere with each other/share CPU use efficiently.
-Handles file storage to/from secondary devices. - LOADING/UNLOADING
SCHEDULING
MEM MANAGE
FILE MANAGE
SECURITY
8
Q
UI Types
A
- Command Line Interface.
- Menu-driven Interface.
- Graphical User Interface.
- Natural Language User Interface.
9
Q
Graphical User Interface
A
- Mouse, trackpad, touchscreen, point/click icons.
ADVANTAGES: - Self-explanatory.
- Memorising commands not required.
- Allows for running applications simultaneously.
- Solid support facilities.
- Familiar format.
DISADVANTAGES: - Uses larger amount of memory than other UIs.
10
Q
Command Line Interface.
A
- All commands typed via keyboard. Only text.
ADVANTAGES: - Simple structure.
- Minimal memory usage.
- Great for slow computers.
- Expert CLI user can perform tasks faster.
DISADVANTAGES: - Difficult to learn command language.
- Complex for novice users.
- Minimal error message info.
- Requires memorisation of input/commands.
11
Q
Menu-driven Interface
A
- Provides user with range of options in form of list/menu.
ADVANTAGES: - Not necessary to memorise long command list.
- Simple interface.
- Self-explanatory.
DISADVANTAGES: - Slow for experienced users
- Limited options.
- Requires you to access multiple menus for a simple function.
12
Q
Natural Language Interface
A
- Interaction by speaking to device.
ADVANTAGES: - No syntax to learn.
- Safer interface in certain environments.
- Possibly more suitable for those with disabilities.
DISADVANTAGES: - Interface needs to be trained.
- Minsinterpretation due to unclear input.
13
Q
Hierarchal Directory Structure
A
- Storage devices flatten data in files being stored/remove directory info.
- The OS provides a mechanism for creating a hierarchal directory structure.
- OS manages directories by creating a special file that represents a folder containing links to other folder files (hierarchy), a list of files stored, permissions.
14
Q
File Allocation Table
A
- Table managed depending on system: Windows has FAT32 and NTFS. Chosen based on compatibility.
-Contains metadata (file name, creation date, file access rights, size).
15
Q
Utility Program
A
- Designed to complete commonplace tasks. Comes bundled with operating system