Topic 3 - Process Management

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

1/38

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 2:08 PM on 9/27/25
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

39 Terms

1
New cards

Process

A sequential execution of program

2
New cards

Process

A name given to a program instance (computer program or application) that has been loaded into memory and managed by the operating system

3
New cards

Process

Sometimes called a job or task

4
New cards

Thread

sequence of instructions within a process

5
New cards

- The executable program itself

- The address space of the process

- The execution context of the process

Components of a Process

6
New cards

Stack

Local variables and functions are allocated at compile-time and placed here

7
New cards

stack, heap

As memory is used by a process, the _____ and the _____ go toward each other

8
New cards

Shared Libraries

f a process makes use of ___________, these are mapped in the memory between the stack and heap

9
New cards

Heap

Data structures explicitly allocated at run-time is placed here

10
New cards

Global Variables

have their own segment in memory that allows for reading and writing

11
New cards

Text

Program code (converted to machine instructions) and other read-only data are placed here

12
New cards

Process Scheduling

Deciding which process/thread should occupy each resource (CPU, disk, etc.) at each moment

13
New cards

-new

-running

-waiting

-ready

-terminated

Process state

14
New cards

New

The process is being created.

15
New cards

Running

Instructions are being executed

16
New cards

Waiting

The process is waiting for some event to occur.

17
New cards

Ready

The process is waiting to be assigned to a processor

18
New cards

Terminated

The process has finished execution.

19
New cards

Process Control Block (PCB)

OS maintains a data structure for each process ____________ that contains the information needed to manage a particular process.

20
New cards

- Process ID number (PID)

- Address space of the process

- Execution context of the process

- List of open files being used by the process

- accounting information

Information stored in PCB includes:

21
New cards

Process Context

Minimal set of state information that must be stored to allow a process to be stopped and re-started later

22
New cards

information stored in the CPU

23
New cards

Context Switching

The Operating System switches the CPU from one process to another

24
New cards

Scheduler

The part of the OS that makes the choice is called the

25
New cards

scheduling algorithm

what algorithm does the scheduler use?

26
New cards

single-processor system

only one process can run at a time; any others must wait until the CPU is free and can be rescheduled

27
New cards

multiprogramming systems

whenever two or more processes are simultaneously in the ready state, a choice has to be made which process to run next.

28
New cards

CPU-I/O Burst Cycle

Eventually, the final CPU burst ends with a system request to terminate execution

29
New cards

- job queue

- ready queue

- device queue

3 Process Scheduling Queues

30
New cards

Job Queues

set of all processes in the system.

31
New cards

Ready Queue

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

32
New cards

Device Queue

set of processes waiting for an I/O device. Each device has its own device queue.

33
New cards

Ready Queue

is stored as linked list

34
New cards

Ready Queue Header

will contain pointers to the first and last PCBs in the list

35
New cards

Long-term scheduler (Job scheduler)

selects which processes should be brought into the ready queue (i.e, selects processes from pool (disk) and loads them into memory for execution).

36
New cards

Short-term scheduler (CPU scheduler)

selects which process should be executed next and allocates CPU (i.e, selects from among the processes that are Ready to execute, and allocates the CPU to one of them)

37
New cards

Short-term scheduler

is invoked very frequently (milliseconds) (must be fast).

38
New cards

Long-term scheduler

s invoked very infrequently (seconds, minutes) (may be slow)

39
New cards

Long-term scheduler

controls the degree of multiprogramming (the number of processes in memory).