Docsity

Computer Science Terms: Memory, Processes, Scheduling, and Operating Systems, Quizzes of Operating Systems

Toggle sidebar
bg1
TERM 1
MAR
DEFINITION 1
Memory Access Register - Contains the address of the
memory to be accessed
TERM 2
MBR
DEFINITION 2
Memory Buffer Register - a buffer of the data in the memory
TERM 3
DSP
DEFINITION 3
Digital Signal Processors - Used for encoding/decoding media
hardware-wise
TERM 4
Spacial
locality
DEFINITION 4
for (i = 0; i < 20; i++) for (j = 0; j< 10; j++) a[i] = a[i] * j;
Array A.
TERM 5
Temporal
locality
DEFINITION 5
for (i = 0; i < 20; i++) for (j = 0; j< 10; j++) a[i] = a[i] * j; An
item in A
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Computer Science Terms: Memory, Processes, Scheduling, and Operating Systems and more Quizzes Operating Systems in PDF only on Docsity!

MAR

Memory Access Register - Contains the address of the memory to be accessed TERM 2

MBR

DEFINITION 2 Memory Buffer Register - a buffer of the data in the memory TERM 3

DSP

DEFINITION 3 Digital Signal Processors - Used for encoding/decoding media hardware-wise TERM 4

Spacial

locality

DEFINITION 4 for (i = 0; i < 20; i++) for (j = 0; j< 10; j++) a[i] = a[i] * j; Array A. TERM 5

Temporal

locality

DEFINITION 5 for (i = 0; i < 20; i++) for (j = 0; j< 10; j++) a[i] = a[i] * j; An item in A

Why is DMA given priority over processor

access to memory?

If a processor is held up attempting ot read or write memory, usually no damage occurs except a slight loss of time. However, a DMA transfer may be to or from a device that is recieving data in a stream and cannot be stopped. Thus, if the DMA module is held up, data will be lost. DATA WILLBE LOST WITH A DMA. TERM 7

Tc=100ns, Tm=1200ns, Cc=0.01c/bit,

Cm=.001c/bit. Cost of 1MB?

DEFINITION 7

  1. main memory = 8 * 1024 * 1024 .001 = $83.882) Cache memory = 8 * 1024 * 1024 .01 = $ TERM 8

Three Objectives

DEFINITION 8

  1. Convenience2) Efficiency3) Ability to evolve TERM 9

Kernel

DEFINITION 9 -Most used portion of the OS-Stays in memory TERM 10

Multiprogramming

DEFINITION 10 The ablity for more than one program to run simultaneously.

Throughput / Turnaround / utilization of:

Simple round-robin, I/O first half, four

Turnaround Time = (2n-1)TTroughput = 2/NPU == 100% TERM 17

Process

DEFINITION 17 A computer program in execution TERM 18

Three components of a process

DEFINITION 18

  1. Executable program2. Associated data by the program3. Process state - Management data TERM 19

Five storage management repsonsiblities

DEFINITION 19 Process isolation Automatic allocation and management Modular programming support Protection and access control Long-term storage TERM 20

Real address

DEFINITION 20 Physical location on real memory

Virtual address

virtual location that may be on physical or virtual memory TERM 22

Multithreading

DEFINITION 22 A technique of dividing an application's execution into multiple threads which run in parallel TERM 23

Process Control Block

DEFINITION 23 contains all information needed to manage a particular process Allows multiple processses to be interleaved TERM 24

"block" state

DEFINITION 24 the process is not ready to run when the process becomes ready allows multiple processes to be handled effectively TERM 25

"suspend" state

DEFINITION 25 When a process is swapped out into the memory for later use

Process Image

An virtual image that contains everythign associated with the process TERM 32

Three categories of information in a processor

control block

DEFINITION 32 Process identification Process state information Process control information TERM 33

What types of entities does the operating

system maintain tables of information of?

DEFINITION 33 Memory tables I/O tables File tables Proecess tables TERM 34

What are the steps performed by an

operating system to create a new process?

DEFINITION 34 Assign a unique PID Allocate space Initialize control block Appropriate linkages Create and expand other data structures TERM 35

Why are there two modes ( user and kernal )

needed?

DEFINITION 35 User mode has restrictions on what it can do

Mode Switch

Switching a process's privilege level - i.e. kernal mode and user mode TERM 37

Process Switch

DEFINITION 37 a switch between process states Ready/Blocked/Suspended/etc. TERM 38

Which is more costly, a process switch or a

mode switch?

DEFINITION 38 A mode switch TERM 39

Mode switch between threads may be

cheaper than a mode switch between

processes?

DEFINITION 39 Less overhead Proess switch needs more information stored Happens on the application layer TERM 40

Advantages of ULT over KLT

DEFINITION 40 Thread switch doesn't require kernel switching Scheduling can happen on application space Can be run on any operating system

Short-Term Scheduling

Known as the dispatcher Exedutes most frequently Decides which process to execute next TERM 47

FCFS Scheduling

DEFINITION 47 First come, first served Simplest scheduling policy FIFO - First in, First Out Favors long process Favors CPU-bound processes TERM 48

Round-Robin Scheduling

DEFINITION 48 Preemption based on a clock time slicing each process gets a certain amount of time before being preempted TERM 49

Preemptive Scheduling

DEFINITION 49 Scheduling is prioritized The highest priority process should always be the process that is currently utilized TERM 50

Non-preememptive Scheduling

DEFINITION 50 When a process enters the state of running, the state of that process is not deleted from the scheduler until it finishes its service time

SPN Scheduling

Shortest Process Next scheduling Process with shortest expected processing time next Difficult to estimate the time required by a process TERM 52

SRT Scheduling

DEFINITION 52 Preemptive version of the shortest process next policy Scheduler always choose the process that has the shortest expected remaining processing time Must estimate processing time Superior turnaround time to SPN TERM 53

HRRN Scheduling

DEFINITION 53 Highest Response Ratio Next Non prememptive Favors short processes, but accounts for age Ratio = (time spent waiting+expected service time) / expected service time TERM 54

Feedback Scheduling

DEFINITION 54 Penalize jobs that have been running longer Each time a process is preempted, it is demoted to next lower priority queue Don't need to know remainign time process needs to execute TERM 55

Small quantum for RRS

DEFINITION 55 Faster response time, less waiting More time spent switching contexts