Quiz 1 Flashcards

Study for quiz 1 with Liquang Wang. (68 cards)

1
Q

compute-server

A

provides interface to client to request services

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

file-server

A

provides interface for clients to store and retrieve files

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

peer-to-peer

A

broadcast request for service and responds to requests for service via discovery protocol

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

software real-time system

A

specialized OS; real-time job gets higher priority and maintains it until it completes

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

hardware real-time system

A

specialized OS; guarantees that real-time jobs complete on time (missile control/robotics) and requires special hardware to implement

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

handheld systems

A

specialized hardware, lack of virtual memory, limited function with small, very limited OSs

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

OS Components

A

process management, IO management, main memory management, file & storage management, networking , protection and security, user interface

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

process or job

A

process is a program in execution; it is a key concept

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

do we need to load the entire program code into memory to execute it?

A

no

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

tasks of process management:

A

create, load, execute, suspend, resume, and terminate processes; process scheduling, process communication, process synchronization; allocate/de-allocate resources properly

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

tasks of io management of os

A

hide the details of hardware devices, maintain and provide device driver interfaces

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

main memory management

A

maximize memory utilization; map process to physical addresses and loaded into main memory to be executed

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

tasks of main memory management of os

A

keep track of memory

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

file & storage management

A

efficient and convenient

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

RAID?

A

duplicates important data

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

task of storage management

A

bad block marking, scheduling IO requests

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

protection v security

A

controlling access of processes or users to resources vs. defense of the system against internal and external attacks

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

shell scripts: interpreted or compiled? consequences?

A

interpreted, run slower

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

two types of popular classes of shells:

A

c shell and variants; bourne shell and variants

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

c shell

A

csh

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

variant c shell

A

tcsh

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

bourne shell

A

sh

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

variants

A

bash, ksh

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

two ways of launching scripts:

A

direct and indirect interpretation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
direct interpretation
csh scriptfile [args..]
26
indirect interpretation
``` first line must be: #!/bin/csh ``` must be executable
27
predefined shell variables
$HOME, $PATH
28
environment variables cshell
setenv PRINTER printer1
29
environment variables bourne
PRINTER=printer1
30
set variable c shell
set x = 1
31
set variable in bourne
x=1
32
start c shell scripts
#!/bin/csh
33
bourne bash shell scripts
#!/bin/bash
34
forget beginning shell script line
default shell used
35
end for switches and cases in switch statements
endsw / breaksw
36
goto
Do Not Do: jump unconditionally to a label
37
three types of control statements
conditions, loops, branch
38
conditional in bourne shell script
tests successful, not true or false
39
return code values
0 if successful, non zero if not (1.255)
40
end if statements
fi
41
then required?
yes
42
test
checks validity
43
three kinds of tests
files, strings, integers
44
test alias
[]
45
do-while in bash?
unto do done
46
three ways to pass parameters to os
registers, block, stack
47
40s-early 50s
vacuum tubes, single user, machine language
48
mid 50s early 60s
transistors, punch cards, batch processing, scientific programs
49
batch processing
sequential read of card decks
50
mid 60s to 70s
integrated circuit, multiprogramming, multitasking (time sharing)
51
context switch
mid 60s to 70s
52
80s to present
personal computer and GUI, internet and distributed systems, PCs are too slow to solve heavy CPU scientific problems that require more advanced systems, security and protection
53
multicaching
different cores can store to cache vs. ram
54
multithreading
share cache
55
multicore
cheaper than multi CPUs; each core has its own lvl 1 cache, but they can share lvl 2 cache
56
ethernet
most popular = LAN
57
cluster
multiple computers connected
58
parallel vs distributed
everyone does the same job but simultaneously vs. emphasis functionality + size, different computers runs different applications
59
multiprocessor
share bus, clock, memory, IO; symmetric and asymmetric
60
symmetric
peer structure
61
asymmetric
master/slave structure
62
manycore
GPU (thousands, many thousands: cheaper, simpler)
63
send data from program 1 to program 2?
network, pipe, shared memory
64
cluster and grid systems like multiprocessors
don't share bus
65
software generated interrupt
trap
66
interrupt vector
interrupt transfers control to the interrupt service routine; contains addresses of all the service routines
67
where does OS preserve the state of CPU to serve an interrupt
registers
68
Two IO methods
synchronous vs. asynchronous