CSCE3600 - Exam 1 Flashcards Preview

Programming > CSCE3600 - Exam 1 > Flashcards

Flashcards in CSCE3600 - Exam 1 Deck (42):
1

unix command: concatenates files and print to standard output

cat

2

unix command: file viewer

less

3

unix command: locate a command

which

4

unix command: prints the groups a user is in

groups

5

unix command: prints lines matching to a pattern

grep

6

unix command: search for a file in a directory

find

7

unix command: clears the terminal screen

clear

8

unix command: prints information about a user

finger

9

unix command: shows who is logged in

who

10

unix command: identifies the current user

whoami

11

List 7 processes associated with Process Control Block (PCB)

process state, program counter, cpu registers, cpu scheduling information, memory-management info, accounting info, I/O status info

12

program in execution, which forms the basis of all computation

process

13

the context (information/data) maintained for an executing program - intuitively the abstraction of a physical processor

process

14

Process: containing temporary data (function parameters, return addresses, local variables)

stack

15

process: containing global variables

data section

16

process: containing memory dynamically allocated during run time

heap

17

how does unix view everything?

as files

18

what are the three standard unix/linux files?

stdin, stdout, stderr

19

what is stored in the user level context (4)

code, data, stack, heap

20

preserve the literal value of each character enclosed within the quotes

single quotes (' ')

21

remove the special meaning from a single character

backslash ( \ )

22

preserves the literal value of all characters within the quotes

double quotes (" ")

23

draw the process state diagram

new, running, waiting, ready, terminated

24

selects which processes should be brought into the ready queue. controls the degree of multiprogramming. invoked infrequently

long-term scheduler

25

selects which process should be executed next and allocates cpu. invoked frequently

short-term scheduler

26

when cpu switches to another process the system must

save the state of the old process and load the saved states for the new process

27

if child exits before parent or if no parent waiting, then terminated process is a

zombie

28

if parent exits before child or if parent terminated, processes are

orphans

29

using SJF draw chart and calculate waiting time and turn around time: AT:BT
P1 = 0:7
P2 = 2:4
P3 = 4:1
P4 = 5:4

chart: P1 - P3 - P2 - P4
WT = 4
TAT = 8

30

only one processor accesses the system data structures, alleviating the need for data sharing

asymmetric multiprocessing

31

each processor is self-scheduling, all processes in common ready queue, or each has its own private queue of ready processes

symmetric multiprocessing

32

process must voluntarily relinquish by terminating or by making a system call

non-preemptive

33

yank the cpu away from the currently executing process when a higher priority process is ready

preemptive

34

list preemptive algorithms

shortest-remaining-time-first
round-robin
multi-level feedback queue

35

fraction (%) of time that cpu is busy

cpu utilization

36

number of job completions (processes) per unit of time

throughput

37

the interval from the time of submission of a process to the time of completion

turnaround time

38

sum of the periods spent waiting in the ready queue

waiting time

39

time of submission to the time the first response is produced

response time

40

list 3 resource sharing options for parents and children

1) parent and children share all resources
2) children share subset of parent's resources
3) parent and child share no resources

41

list 2 address space options for parents and children

1) child duplicate of parent
2) child has no program loaded into it

42

list 2 execution options for parent and child

1) parent and child execute concurrently
2) parent waits until children terminate