CSCE4600 Exam 1 Flashcards
The OS is responsible for
- Unify view of memory
- Transfer Data between CPU and other devices
- Keep track of file locations
- Provide HW / Platform Independence
- Mediate Resource Usage
What are the 3 views of OS
Abstraction
Virtualization
Resource Management
I/O primitives are…
system calls, executed by the kernal
Name the 6 UNIX primitives
- create()
- open()
- close()
- read()
- write()
- ioctl()
If pathname does not start with / it is assumed…
to start in the current directory
if pathname starts with ./
current directory
if pathname starts with ../
refers to the parent directory
In Kernel mode, the executing code has..
complete and unrestricted access to the underlying hardware
Generally reserved for the lowest-level, most trusted functions
Kernel mode
In User mode, the executing code has…
no ability to directly access hardware or reference memory
Advantage for user mode,
crashes in user mode are always recoverable
Disadvantage for Kernel mode,
crashes are catastrophic
Why is unbuffered I/O suffer a performance loss?
you read and/or write one byte at a time
Buffered I/O is a net win when…
performing a large humber of small writes
A program whose execution has started and not yet terminated
A process
If all executions allowed under precedence relation result in the same values, then system is
Determinant
for (Pi,Pj), Pi must…
complete before the start of Pj
Mutually non-interfering systems ARE/AREN’T determinant
ARE
Name the 7 parts of a process
1) Process State
2) Program counter
3) CPU registers
4) CPU scheduling
5) Memory management
6) Accounting information
7) I/O status
Set of all processes in the system
Job queue
set of all processes residing in main memory, ready and waiting
Ready queue
set of processes waiting for an I/O device
device queue
selects which processes should be brought into the ready queue
Long-term scheduler
selects which process should be executed next and allocates CPU
Short-term scheduler