test Flashcards

(57 cards)

1
Q

What do shells do

A

allows user to interface with the OS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What do executables need?

A

OS servicces

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How are executable performed ?

A

through system calls

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a process ?

A

a program in exectuion

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the address space of a process ?

A

memory locations which the process reads or writes to

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

PSW

A

Processor Status word contains control bits in CPU

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Two modes of instructions

A

User mode = less privileged System mode = more privileged

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is an OS exception?

A

An abrupt change in Control flow in a response to a change in processor state

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Exception: Interrupt

A

Signals from I/O

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Exceptiom:Trap

A

Application request OS services

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Exceptions:Faults

A

Recoverable error

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Exception:Aborts

A

Not recoverable error

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Kernel

A

Everything below the system call interface and above the physical hardware

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What does the Kernel provide

A
  • file system, -cpu scheduling

- memory management, other os functionality

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What does a Kernel use?

A

System calls

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Three catagories of system calls

A

1 File management, 2 Process control, 3 Information manipulation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

What is a zombie

A

A process whose parent has excited/not waiting

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

What do process control blocks enable

A

Allows the CPU to resume the process where it left off when switching execution

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

What are the types of scheduling queues

A

job, Ready, Device

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

CPU scheduler vs long term scheduler

A

CPU is short term long term will try to balance CPU and I/O demand

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

What happens in context switches?

A

Old process state is saved new process is loaded

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

Process creation is based around

A

parent creating children

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

What is an orphan

A

Child whose parent has terminated

24
Q

Pipes allow for communication on?

A

The same machine

25
Sockets allow for communication on?
Separate Machines
26
Error control approaches
Parity, CRC, Hamming
27
Flow Control: Stop and wait
Sever waits for client ack after each message
28
Flow Control: Pipeling
Sends ACK of next frame expected
29
Flow Control: Automatic Repeat Requests
Goes back and rejects new frames after error and ask for bad frames
30
High level data link
Station types. Primary controls secondary
31
Threads share?
Process Address Space and OS state
32
Two categories of thread implementation
User level threads and kernel level threads
33
Network Adress
Identifies a node
34
Routing
Forwards message to desitnation
35
Most networks can be broken into . . .
client and server and the client initiations communication
36
Network communicates data to the
Operating system
37
Operating system communicates data to the . ..
socket
38
Socket connects data to the
application
39
Two types of application Process communcation
Data gram and Stream
40
Data gram Socket
UDP Like post mail collection of messages connectionless
41
Stream socket
TCP Like telephone stream of bits connection oriented
42
Two types of network communication
Circuit switching and packet switching
43
Circuit switching
Dedicated path between two stations
44
Packet switching
Data transmitted in short packets that also hold control information such as destination
45
Security: Spread spectrum
Modulate the signal such that the bandwidth is increased significantly
46
Security: Frequency hoping spread spectrum
Sequence is seemly spread on random frequency each channel is used for fixed interval
47
TSL
Test and lock instruction
48
Synchronize clocks: Christians Algorithm
Ask twice for time use difference to calculate delay
49
Synchronize clocks: Berkely algortihm
Server polls client compute average time push result to client
50
Synchronize clocks: Lampert
Uses logical reasoning to set clocks
51
Resource allocation graph
R_1 -> P_1 resources R held by P R
52
Ostrich Algorthim for deadlocks
ignores them
53
Detecting deadlocks in a graph
DFS if node shows up twice deadlock is detected
54
Dead lock safe state
State where no deadlocks can occur avoid deadlocks by staying here
55
HLDLC: Normal response mode
+unbalanced, primary initiates, secondary only response
56
HLDLC: Asynchronous balanced mode
+ Balanced, either station may initiate, most widely used
57
HLDLC: Asynchronous Response mode
Unbalanced secondary initiates rare