Processes II and Process Management

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

1/22

flashcard set

Earn XP

Description and Tags

Vocabulary terms and definitions related to process creation, synchronization, identification, and termination as covered in the Processes II lecture.

Last updated 1:58 PM on 6/17/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

23 Terms

1
New cards

PID (Process Identifier)

A unique number used by the system to identify and manage individual processes.

2
New cards

fork()

A system call that creates a child process by making an exact copy of the parent process; it returns the child's PID to the parent and 0 to the child.

3
New cards

pid_t

A signed integer data type in the GNU C Library (usually an int) capable of representing a process ID.

4
New cards

Race condition

An issue that occurs when two or more operations are executed at the same time, requiring process synchronization to prevent data inconsistency.

5
New cards

Program Counter

The hardware/software mechanism the CPU uses to keep track of which instruction is going to execute next while executing a program sequentially.

6
New cards

wait()

A system call that forces the parent process to suspend execution until its first child process terminates.

7
New cards

waitpid()

A system call that allows a parent to wait for a specific child process identified by a unique PID.

8
New cards

Process suspension

An OS action where a process in main memory is moved to a Suspended state on disk to free memory for another process.

9
New cards

cat /proc/sys/kernel/pid_max

A command used to determine the maximum number of unique PIDs the system supports.

10
New cards

exec() family

A set of system calls used by a child process to execute a different program, common in shell operations.

11
New cards

_exit()

A function used in child processes after an exec() failure to terminate without flushing fully buffered streams (like stdout) to avoid duplicate data output.

12
New cards

SIGCHLD

A signal automatically sent to the parent process when a child process terminates.

13
New cards

Orphan

A child process that is still executing after its parent process has terminated.

14
New cards

Zombie

A terminated child process that still has an entry in the process table because the parent is not currently executing a wait() call.

15
New cards

init process

The system process with PID 1 that adopts orphaned and zombie processes when a parent terminates.

16
New cards

Process group

A logical cluster of processes belonging to the same application or deployment unit used to distribute signals for job control.

17
New cards

setpgid()

A function used to change a process's group to a new value.

18
New cards

Session

A collection of one or more process groups.

19
New cards

getppid()

A function that returns the process ID of the parent of the current process.

20
New cards

getuid()

A function that returns the real user ID of the calling process.

21
New cards

File Descriptors (forked)

Copies of descriptors inherited by the child where the actual R-W pointer is shared between parent and child.

22
New cards

lseek()

A function used to reposition the file offset of an open file description measured in bytes from the beginning of the file.

23
New cards

SIGHUP

A signal sent to each process in an orphaned process group if any group member is stopped when a process terminates.