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;
29 Cards in this Set
- Front
- Back
What is the purpose of a directory |
To map a file name to an inode
|
|
What is a hard link |
Points to an inode Can have many of them to one file Inode keeps track of how many hard links there are to a file |
|
What is a soft link |
Contains the name of a file to point to
No guarantee name exists Can work across mount points |
|
What are the different sections on a hard disk and what do they do |
Boot block - allows OS to tell where different partitions are
Super block- No. of blocks and No. of free ones also points to start of inode and free inode lists Inode table - holds information on where all inodes are Inodes - hold actual data |
|
Do hard links work across mount points? Why? |
No because different partitions have different inode structures |
|
How are open files managed |
Each process has its own unique open file table Which maps to a system wide (kernel mode ) open file table - same files in different process map to the same entry This then maps to an inode table |
|
How and where is access control information held |
In the inode 3 bits for each owner, group and world signify read,write and execute privileges |
|
What do Setuid and Setgid allow you to do |
Normally processes run with the privileges of the invoking user When setuid is active it allows the user of the file to have owner privileges - it is able to change effective permissions level |
|
What is the file deletion procedure |
check if have sufficient access to file check if have sufficient access to directory Remove entry decrement inode reference count if 0 then free data blocks and free inode If there is a crash must check entire system to see if any block is unreferenced or double referenced |
|
What are the free segments of a unix process |
stack data text |
|
How does the unix system start |
Kernel loaded from disk Root file system mounted First process created - init |
|
How does the shell work |
Works just like every other process Creates children |
|
What are the 3 file descriptors a process has on creation |
stdin: where to read input from stdout: where to send output stderr: where to send diagnostics |
|
How do pipes work in unix |
They all you to pass the output from one process to the input of another |
|
What is a filter in unix |
It takes the output of one function and performs an action on it |
|
Unix: |
It is a form of Inter process communication that is sent between processes or between threads in a process to notify it of an event Some are able to be caught |
|
Unix: What is an example of a signal |
Program error Death of child |
|
What are the 2 categories of IO |
Block and character |
|
What are the properties of character IO |
Low rate Complex Most functionality comes from the cooked interface |
|
What does Block IO rely on |
The buffer cache |
|
What is the buffer cache |
Keep parts of disk in memory for speed Prevents 85% of disk accesses |
|
What happens in the buffer cache on read |
Locate relevant inodes Check if in buffer cache already if not read disk blocks into memory return data to buffer cache |
|
What happens during a buffer cache write |
Locate relevant inodes Check if in buffer cache already write data onto buffer cache every 30 seconds data is flushed to the disk |
|
What scheduling scheme does unix use? |
Round robin with priorities |
|
How do nice values effect scheduling |
The nice value effects the priority It can be set by the user between 20 and -20 IO bound tasks can have there nice value changed to make them a higher priority |
|
What is the HAL |
Hardware abstraction layer Hides hardware details Interrupt mechanisms DMA |
|
What are the four main responsibilities of the windows kernel |
CPU scheduling Interrupt and exception handling Low level processor synchronization Recovery after power failure |
|
How does the NT interrupt and exception handler work |
Handles interrupts and exceptions either from hardware or software. Interrupts handled by the ISR |
|
s |
s |