Processes I - Lecture Notes

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

1/35

flashcard set

Earn XP

Description and Tags

Flashcards covering the fundamentals of operating system processes, including identifiers, states, context, scheduling, and system calls based on the Processes I lecture notes.

Last updated 5:51 PM on 6/24/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

36 Terms

1
New cards

Program

A passive set of instructions stored on a secondary storage device, such as a disk.

2
New cards

Process

An active execution of a program stored in memory; it becomes a process when the program is loaded into memory.

3
New cards

Process Resources

The components a process needs to accomplish its task, including CPUCPU time, memory, files, and I/OI/O devices.

4
New cards

PIDPID (Process ID)

A unique, non-negative integral number assigned to each process by the OSOS to distinguish it from others.

5
New cards

Parent Process

The process that started another process; every process has one.

6
New cards

Child Process

A process spawned by a parent process; the kernel uses the PIDPID to manage and control it during its lifetime.

7
New cards

swapper/schedswapper / sched

A system process with PID0PID\,0 that is part of the kernel and is responsible for memory management.

8
New cards

initinit

A continually-running daemon process with PID1PID\,1 responsible for starting up and shutting down the system at the end of the bootstrap procedure.

9
New cards

systemdsystemd

The service that has replaced initinit as the system manager in many LinuxLinux distributions.

10
New cards

pstreepstree

A LinuxLinux command that prints a tree showing the hierarchy of all running processes.

11
New cards

renicerenice

A command used in LinuxLinux by system administrators to change the priority (nice value) of a running process.

12
New cards

psps

A command that shows processes run by the user executing it, including the PIDPID, Terminal (TTYTTY), aggregated execution time (TIMETIME), and the command (CMDCMD).

13
New cards

User Level Context

The segment of memory where a program is organized when loaded, consisting of text, data, heap, and stack segments.

14
New cards

Text Segment

The part of the User Level Context that contains the actual program code or executable instructions.

15
New cards

Data Segment

The part of the User Level Context that contains global and static variables initialized at runtime.

16
New cards

Heap Segment

The part of the User Level Context containing dynamic memory allocated at runtime.

17
New cards

Stack Segment

The part of the User Level Context containing return addresses, function parameters, and local variables.

18
New cards

Register Context

The part of the process context that includes hardware-dependent information such as the Program Counter (PCPC), Processor Status Register, Stack Pointer (SPSP), and General-Purpose Registers (R0R0, R1R1, etc.).

19
New cards

Program Counter (PCPC)

A register that contains the address of the next instruction to be executed by the process.

20
New cards

Stack Pointer (SPSP)

A register that points to the top of the kernel or user stack, depending on the mode of operation.

21
New cards

Created State

The initial state of a process, also referred to as "new."

22
New cards

Waiting State

The state where a process is awaiting to be scheduled for execution, also referred to as "ready."

23
New cards

Running State

The state where a process is actively executing instructions on the CPUCPU.

24
New cards

Blocked State

The state where a process is unable to continue until a specific event occurs, such as an I/OI/O operation.

25
New cards

Terminated State

The final state of a process when it is no longer running due to completion or being killed.

26
New cards

Zombie State

A state where a process no longer exists after executing the exit system call but leaves a record for its parent process to collect.

27
New cards

Process Control Block (PCBPCB)

A data structure used by the OSOS to store context information, process status, priority, and other management data for each process.

28
New cards

Short-term Scheduler

Also known as the CPUCPU Scheduler, it selects which process should be executed next and allocates the CPUCPU; it is invoked every few milliseconds.

29
New cards

Long-term Scheduler

Also known as the Job Scheduler, it selects processes to be brought into the ready queue to control the degree of multiprogramming; it is invoked infrequently (seconds or minutes).

30
New cards

I/OI/O-bound Process

A process that spends more time performing I/OI/O than computations, characterized by many short CPUCPU bursts.

31
New cards

CPUCPU-bound Process

A process that spends more time doing computations than I/OI/O, characterized by a few very long CPUCPU bursts.

32
New cards

Context Switch

The process where the OSOS saves the state (PCBPCB) of the current process and loads the saved state of a new process to be executed.

33
New cards

Overhead

The time spent by the system during a context switch (typically about 1msec1\,msec) where no useful work is being performed.

34
New cards

SunUltraSPARCSun \, UltraSPARC

A processor hardware that supports multiple register sets, allowing context switches to occur very quickly by simply changing a pointer.

35
New cards

exec()exec() System Call

A family of system calls that replaces the current process's instructions, data, heap, and stack segments with a new program from disk while keeping the same PIDPID.

36
New cards

execlpexeclp

A version of the execexec function that takes the filename and arguments as separate parameters and searches for the command using the PATHPATH environment variable.