OS 1

studied byStudied by 0 people
0.0(0)
learn
LearnA personalized and smart learning plan
exam
Practice TestTake a test on your terms and definitions
spaced repetition
Spaced RepetitionScientifically backed study method
heart puzzle
Matching GameHow quick can you match all your cards?
flashcards
FlashcardsStudy terms and definitions

1 / 73

encourage image

There's no tags or description

Looks like no one added any tags here yet for you.

74 Terms

1

Operating System (OS)

An interface between applications and hardware.

New cards
2

Process Utilization =

\frac{P}{\text{Sum of processing times}}

New cards
3

Evolution of Operating Systems:

Serial Processing
Simple Batch Systems
Multiprogrammed Batch Systems
Time Sharing Systems

New cards
4

Serial Processing

Programs interface directly with the hardware.

New cards
5

Simple Batch Systems

Uses a monitor to control a program’s access to the hardware.

New cards
6

Monitor

Controls a program’s access to the hardware. Software will always branch back to the monitor.

New cards
7

Resident Monitor

Software that is always in memory.

New cards
8

Job Control Language (JCL)

Used to provide instructions to the monitor.

New cards
9

User Mode

No access to certain areas of memory.

New cards
10

Kernel Mode

Complete access to hardware.

New cards
11

Monitor Drawbacks:

Monitor takes time to exectute
Monitor takes up space in memory.

New cards
12

Multiprogramming / Multitasking

Swapping control to a different program when the current one needs to wait for I/O.

New cards
13

Time-Sharing Systems

Handles multiple programs that require I/O.
Can be accessed by multiple users at once.

New cards
14

Time-Sharing Systems use ___ to directly interface with the program.

Terminals

New cards
15

Compatible Time-Sharing Systems (CTSS)

One of the first OS’s.

New cards
16

CTSS Time Slicing

Would “interrupt” the system at set intervals to swap to another program.
Incomplete programs would be written to a disk while another job was finishing.

New cards
17

Process

A program being executed.

New cards
18

Improper Synchronization

A program is overwritten before it could be saved.

New cards
19

Nondeterminate Program Operation

Programs overwrite an area of memory that is already occupied by another program.

New cards
20

Failed Mutual Exclusion

More than one user or program tries to make use of a shared resource at the same time.

New cards
21

Deadlocks

Two programs can be hung up waiting on each other.

New cards
22

3 Components of a Process:

Program
Associated Memory
Execution Context / State

New cards
23

Execution Context

The “state” the a process is currently in.

New cards
24

OS Storage Responsibilities:

Process Isolation
Automatic Memory Management
Modular Programming Support
Access Control
Long-Term Storage

New cards
25

Virtual Memory

Allows programs to access memory as symbols instead of directly accessing memory.
This allows the OS to handle memory allocation.

New cards
26

Paging

Allows processes to be comprised of a number of fixed-size blocks called pages.
Provides a dynamic mapping between a virtual and physical address.

New cards
27

Main Issues with Access Control:

Availability
Confidentiality
Data Integrity
Autheticity

New cards
28

Resources Allocation policies that must be considered:

Efficiency
Fairness
Differential Responsiveness

New cards
29

Process Control Block

A data block created and maintained by the os.
Contains all the elements that make up a process.

New cards
30

Notable process elements:

ID
State
Priority
Counter
Pointers
Context
I/O
Accounting

New cards
31

Trace

The behavior of a process as defined by the list of executed instructions.

New cards
32

Dispatcher

A small program that switches the processer from one process to another.

New cards
33

Process Counter

The address of the next instruction to be executed.

New cards
34

Process Pointers

Pointers to any data associated with the process + any memory shared with other processes.

New cards
35

Process Context

The data present in the context registers while the process is executing.

New cards
36

Process I/O

Includes any I/O requests, devices, files, etc.

New cards
37

Process Accounting

May include things such as the amount of time a process has taken, time limits, etc.

New cards
38

Reasons for process creation:

New batch job
Login
Service-by-OS
From existing process

New cards
39

Process Spawning

The act of a process requesting another process be made.
The requester is the parent and the resulting process is the child.

New cards
40

Reasons for process termination:

Completion
Timeout
Error
OS Intervention
Parent Termination
Parent Request

New cards
41

Process Blocked State

Occurs when the process is waiting for an event to occur, typically I/O.

New cards
42

Process Swapping

Moving parts of a process from main memory to disk, putting it into a suspended state.

New cards
43

7-State Process Model

knowt flashcard image
New cards
44

Reasons for process suspension:

Swapping
OS-Suspicion
User Request
Timing
Parent Request

New cards
45

Memory Tables

Used to keep track of real and virtual memory.

New cards
46

Memory tables must include:

Allocation of real memory.
Allocation of virtual memory.
Protection attributes for real and virtual memory.
Info needed to manage virtual memory.

New cards
47

I/O Tables

Used by the OS to manage the I/O devices and channels.

New cards
48

File Tables keep track of:

Existence of files.
File location on virtual memory.
Current status.
File-specific attributes.

New cards
49

Process Tables

Used and maintained by the OS to manage processes.

New cards
50

Process tables help the OS keep track of:

Process Location
Process Attributes

New cards
51

Process Location

Where a process’s programs and data is located.
A process will always have sufficient enough memory to hold said programs and data.

New cards
52

Process Attributes

Any unique attributes a process may possess.

New cards
53

Process Image

The collection of a process’s program, data, stack, and attributes.

New cards
54

A process image contains:

User Data
User Program
Stack
Process Control Block

New cards
55

Process Control Block

Contains all the information about a process that is needed by the OS.

New cards
56

A process control block contains:

ID
State Information
Control Information

New cards
57

Process ID

A unique numeric ID given to a process.

New cards
58

Processor State Information contains the:

User-Visible Registers
Control & Status Registers
Stack Pointers

New cards
59

Program Status Word (PSW)

Contains condition codes and other status information.

New cards
60

Process Control Information

The additional information needed by the OS to coordinate the various active processes.

New cards
61

Process Modes of Execution:

User Mode
System Mode

New cards
62

Typical Functions of a OS Kernel:

Process Management
Memory Management
I/O Management

New cards
63

Process Creation Steps:

Assign ID
Allocate space
Initialize control block
Set appropriate links
Create/expand other data structures

New cards
64

System Interrupt

Stops a process from running to either handle I/O or switch processes.

New cards
65

System Trap

Stops a process from running to handle an error or exception.

New cards
66

Scheduling and Process State Transitions

knowt flashcard image
New cards
67

Long-term Scheduler

Determines which programs are admitted to the system for processing.

New cards
68

Medium-term Scheduler

Determines which parts of any process is moved into main memory.
Part of the swapping function.

New cards
69

Short-term Scheduler / Dispatcher

Determines which process gets executed next.

New cards
70

Priority Queueing

knowt flashcard image
New cards
71

Selection Function

Determines which process, among ready processes, is selected for execution.

New cards
72

Decision Mode

Specifies the instants in time at which the selection function is exercised.

New cards
73

Nonpreemptive Decision Mode

Once a process is in the running state, it will continue until it terminates or requires I/O.

New cards
74

Preemptive Decision Mode

Interrupts running processes and moves them to the “ready” state.

New cards

Explore top notes

note Note
studied byStudied by 56 people
145 days ago
5.0(2)
note Note
studied byStudied by 9 people
751 days ago
5.0(1)
note Note
studied byStudied by 51 people
758 days ago
5.0(2)
note Note
studied byStudied by 22 people
968 days ago
4.5(2)
note Note
studied byStudied by 7 people
569 days ago
5.0(1)
note Note
studied byStudied by 1 person
809 days ago
5.0(1)
note Note
studied byStudied by 36 people
720 days ago
5.0(1)
note Note
studied byStudied by 10144 people
699 days ago
4.6(60)

Explore top flashcards

flashcards Flashcard (27)
studied byStudied by 21 people
141 days ago
5.0(3)
flashcards Flashcard (97)
studied byStudied by 18 people
843 days ago
5.0(1)
flashcards Flashcard (61)
studied byStudied by 5 people
94 days ago
5.0(1)
flashcards Flashcard (75)
studied byStudied by 8 people
724 days ago
5.0(2)
flashcards Flashcard (20)
studied byStudied by 2 people
15 days ago
5.0(1)
flashcards Flashcard (32)
studied byStudied by 19 people
719 days ago
5.0(1)
flashcards Flashcard (48)
studied byStudied by 39 people
407 days ago
5.0(1)
flashcards Flashcard (278)
studied byStudied by 172 people
134 days ago
5.0(1)
robot