Process Management

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

1/17

flashcard set

Earn XP

Description and Tags

Flashcards covering key concepts in process management, including definitions, states, scheduling algorithms, and system calls.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

18 Terms

1
New cards

What is a process?

The execution of a program that performs the actions specified in that program.

2
New cards

Process states

Conditions of the process at a specific instant of time, defining its current position.

3
New cards

What are the five states of a process?

New, Ready, Running, Waiting, Halt.

4
New cards

What happens in the new state?

A new process is created when a specific program is called from secondary memory to primary memory.

5
New cards

What is context switching?

The process of saving the context of one process and loading the context of another process.

6
New cards

What is a context switch?

Saving and restoring the state of a CPU so that multiple processes can share a single CPU resource.

7
New cards

What is a mode switch?

Refers to the transition of the CPU from one privilege level to another.

8
New cards

What is the purpose of process management?

To manage creation, scheduling, termination of processes and handling deadlocks.

9
New cards

What are the steps in process creation?

Initialization, allocation of Process ID (PID), memory allocation, creation of Process Control Block (PCB), scheduling, execution.

10
New cards

What does the fork() system call do?

It duplicates the current process to create a new child process in Unix-like operating systems.

11
New cards

What occurs during process termination?

Resources, memory, and I/O devices are deallocated after the exit system call is made.

12
New cards

What is multithreading?

The ability of a program to execute multiple threads concurrently within a single process.

13
New cards

What is the role of a long-term scheduler?

Selects processes from the queue and puts them in memory for execution.

14
New cards

Define arrival time in process scheduling.

The time at which the process arrives in the ready queue.

15
New cards

What is the First Come First Serve (FCFS) scheduling algorithm?

A non-preemptive scheduling algorithm where processes are attended to in the order they arrive.

16
New cards

What is the Shortest Job First (SJF) scheduling algorithm?

A non-preemptive scheduling algorithm that selects the process with the smallest execution time.

17
New cards

Define turn around time (TaT) in process scheduling.

The time difference between the completion time and arrival time of a process.

18
New cards

What does waiting time (WT) represent?

The time difference between turn around time and burst time.