OPERATING SYSTEMS QUIZ 2

0.0(0)
studied byStudied by 0 people
GameKnowt Play
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/55

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

56 Terms

1
New cards

process

a _______ is a program in execution; execution must progress in a sequential fashion. no parallel execution of instructions of a single ______.

2
New cards

text section

program counter

stack

data section

heap

multiple parts of a process

3
New cards

text section

the program code part of the process

4
New cards

program counter

part of the process; current activity including _____, processor registers

5
New cards

stack

part of the process; contains temporary data; function parameters, return addresses, local variables

6
New cards

data section

part of the process; contains global variables

7
New cards

heap

part of the process; containing memory dynamically allocated during run time

8
New cards

passive, active

prorgam is ______ entitty stored on disk (executable file); process is _______

9
New cards

loaded into memory

program becomes process when an executable file is ___________

10
New cards

GUI mouse clicks, command line entry of name

execution of program can start with _____________________, _____________, etc.

11
New cards

one, several

______ can be ________ processes

12
New cards

stack, heap, data, text

knowt flashcard image
13
New cards

argc, argv

stack

heap

uninitialized data

initialized data

text

knowt flashcard image
14
New cards

new, running, waiting, ready, terminated

as a process executes, it changes states:

15
New cards

new

process state; the process is being created

16
New cards

running

process state; instructions are being executed

17
New cards

waiting

process state; the process is waiting for some event to occur

18
New cards

ready

process state; the process is waiting to be assigned to a processor

19
New cards

terminated

process state; the process has finished execution

20
New cards

new, ready, waiting, running, terminated

diagram of process state

<p>diagram of process state </p>
21
New cards

task control block

information associated with each process

22
New cards

process state

program counter

CPU registers

CPU scheduling information

memory-management information

accounting information

I/O status information

process control blocks

23
New cards

process state

process control block

running, waiting, etc.

24
New cards

program counter

process control block

location of instruction to next execute

25
New cards

CPU registers

process control block

contents of all process-centric registers

26
New cards

CPU scheduling information

process control block

priorities, scheduling, queue pointers

27
New cards

memory-management information

process control block

memory allocated to the process

28
New cards

accounting information

process control block

CPU used, clock time elapsed since start, time limits

29
New cards

I/O status information

process control block

I/O devices allocated to process, list of open file

30
New cards

single thread

so far, process has a _____ of execution

31
New cards

process representation in linux

knowt flashcard image
32
New cards

process scheduler

selects among available processes for next execution on CPU core

maximize CPU use and quickly switch processes onto CPU core

33
New cards

ready queue

wait queue

role of process scheduling;

maintains the scheduling queues of processes

34
New cards

ready queue

set of all processes residing in main memory, ready, and waiting to execute

35
New cards

wait queue

set of processes waiting for an event (i.e. I/O)

36
New cards

ready and wait queues

knowt flashcard image
37
New cards

representation of process scheduling

knowt flashcard image
38
New cards

CPU switch from process to process

knowt flashcard image
39
New cards

save the state

save state

context switch

when the CPU switches to another process, the sustem must _________ of the old process and load the _______ for the new process via a __________.

40
New cards

foreground process

controlled via user interface

41
New cards

background processes

in memory, running but not on the display, and with limits

42
New cards

process creation

process termination

systems must provide mechanisms for

43
New cards

parent

children

tree

_____ process create _______ process which, in turn, create other processes, forming a ______ of processes

44
New cards

process identifier (PID)

process is identified and managed via ________

45
New cards

UNIX process creation

knowt flashcard image
46
New cards

linux tree processes

knowt flashcard image
47
New cards

cascading termination

if a process terminates, then all of its children must also be terminated

all children, grandchildren, etc are terminated initiated by the OS

48
New cards

foreground

visiible

service

background

empty

most to least important android process importance hierarchy

49
New cards

independent or cooperating

processes within a system

50
New cards

information sharing

computation speedup

modularity

convenience

reasons for cooperating processes

51
New cards

interprocess communication (IPC)

cooperating processes need

52
New cards

shared memory

message passing

two models of interprocess communication (IPC)

53
New cards

shared memory

knowt flashcard image
54
New cards

message passing

knowt flashcard image
55
New cards

unbounded buffer

places no practical limit on the size of the buffer:

producer never waits

consumer waits if there is no buffer to consume

56
New cards

bounded-buffer

assumes that there is a fixed buffer size:

producers must wait if all buffers are full

consumer waits if there is no buffer to consume