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;
26 Cards in this Set
- Front
- Back
What does the core of the CPU contain? |
Control Unit, ALU, Generic registers, PC, Stack Pointer, Program Status Word (CCR), Cache memory. |
|
What are the two processor modes? |
Kernel/User. |
|
What mode does the OS run in? |
Kernel. |
|
How can a program enter kernel mode? |
Software trap (interrupt intended to initiate a context switch). |
|
What functions are usually forbidden in user mode? |
I/O and memory functions. |
|
What do I/O devices consist of? |
The device itself, and a controller (with registers). |
|
What talks to an I/O device controller? |
Device driver. |
|
Why bother having an OS? |
Each application would be responsible for running the computer! |
|
Where does the OS exist? |
On top of the hardware, below application programs. |
|
What mode does the Kernel run in? Why? |
kernel mode (supervisor mode) to protect it from tampering. |
|
What 4 things does an OS do? |
Hides details of work. |
|
What are two perspectives of an OS? |
Extended Machine - Hardware communication. Resource Manager - Each program given time/space. OS is the scheduler. |
|
What are the 7 types of OS? |
Mainframe. PC OSs. Embedded OSs Smart Card Operating Systems. |
|
What is a process? |
A program in execution to which we have given resources. |
|
What resources are associated with a process? |
The process' address space. |
|
Where is information about processes stored? |
Into a structure called a process table. |
|
What are the signals received by processes from the OS called? |
Alarm Signals (Software equivalent to interrupts). Caused by timers controlled by the OS or by Hardware. |
|
An OS assigns what number to the process based on the user that started it? What does this affect? |
UID (User Identification). |
|
What are the short comings of evenly allocating available memory per n proccesses? |
Wastes memory. |
|
What is a solution to dividing memory per n processes? |
Virtual memory: |
|
When are system calls required for handling files? |
File opening, closing, creation, deletion, reading, and writing. |
|
Files in UNIX are protected by a 9-bit code. |
|
|
Is the shell part of the operating system? |
No, but it is closely linked. |
|
What are system calls? |
The interface between user programs and the operating system. |
|
How do you create a new process in *NIX OS? |
fork() |
|
s = execve(name, argv, environp) |
|