Operating Systems Chapter 3

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

1/16

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.

17 Terms

1
New cards

Process

A program that is being executed; Unit of work in a modern time sharing system

2
New cards

Processes that make up a system

Operating systems processes executing system code and user processes executing user code

3
New cards

What is the benefit of switching the CPU between processes

Doing so makes the computer more productive

4
New cards

Components of a process

Text section (code), data section(global variables), heap(memory), stack (temporary data)

5
New cards

States of a process

New (created) Running (instructions being executed) Waiting (Process is waiting for some event to occur) Ready (Waiting to be assigned to processor) Terminated (Finished execution)

6
New cards

Process Control Block (PCB) Contains

Process state (new, ready, etc...)
Program Counter (Address of next instruction)
CPU Registers
CPU Scheduling information (process priority, etc...)
Memory Management information ()
Accounting Information
I/O Status information

7
New cards

Process Scheduler

Selects process for execution on CPU

8
New cards

Job Queue

Holds All processes in system

9
New cards

Ready Queue

Holds processes in main memory that are waiting to be executed. Usually in linked list.

10
New cards

longterm/job scheduler

Selects processes and loads them into main memory where they await execution

11
New cards

short term scheduler/ cpu scheduler

Selects processes that are ready to execute and allocates cpu to one of them

12
New cards

I/O bound vs CPU bound

An I/O-bound process is one that spends more of its time doing I/O than it spends doing computations. A CPU-bound process, in contrast, generates I/O requests infrequently, using more of its time doing computations.

13
New cards

Swapping

Processes are swapped in and out of main memory to the disk

14
New cards

Context Switch

Switching the CPU to another process requires performing a state save of the current process and a state restore of a different process

15
New cards

fork()

System call that creates a new process

16
New cards

exec()

loads binary file into memory and starts its execution

17
New cards

wait()

Used by parent process to movie itself off ready queue until termination of child