Processes, Scheduling, IPC & Threads – Vocabulary Flashcards

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

1/76

flashcard set

Earn XP

Description and Tags

These vocabulary flashcards cover fundamental terms related to processes, scheduling, interprocess communication, and threads, providing concise definitions for exam review.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

77 Terms

1
New cards

Process

A program in execution, including current register values, program counter, and memory sections.

2
New cards

Program

A passive entity stored on disk (executable file) that becomes a process when loaded into memory.

3
New cards

Multiprogramming

Rapid CPU switching among processes to keep the CPU busy and maximize utilization.

4
New cards

Batch System

Operating-system environment that executes jobs with minimal user interaction.

5
New cards

Time-Shared System

Environment that rapidly switches the CPU among user programs (tasks) to give interactive response.

6
New cards

Text Section

The portion of a process containing executable program code.

7
New cards

Process Stack

Area in a process memory holding temporary data such as parameters, return addresses, and local variables.

8
New cards

Data Section

Part of a process memory that stores global variables.

9
New cards

Heap

Memory region in a process for dynamically allocated data at run time.

10
New cards

Process State – New

State in which a process is being created.

11
New cards

Process State – Running

State where CPU instructions of the process are actively executing.

12
New cards

Process State – Waiting

State where a process waits for an event (e.g., I/O completion).

13
New cards

Process State – Ready

State where a process is prepared to run and awaiting CPU allocation.

14
New cards

Process State – Terminated

State reached after a process finishes execution.

15
New cards

Process Control Block (PCB)

Data structure used by the OS to store all information about a particular process.

16
New cards

Program Counter (in PCB)

Field indicating the address of the next instruction for the process.

17
New cards

CPU-Scheduling Information

Part of PCB holding priority, queue pointers, and other scheduling parameters.

18
New cards

Memory-Management Information

PCB fields containing base/limit registers, page or segment tables.

19
New cards

Accounting Information

PCB data such as CPU time used, job numbers, and time limits.

20
New cards

I/O Status Information

PCB list of allocated devices and open files for the process.

21
New cards

Context Switch

Saving the state of one process and restoring another so the CPU can switch execution.

22
New cards

Ready Queue

Linked list of PCBs for processes in main memory waiting to run.

23
New cards

Job Queue

Collection of all processes in the system.

24
New cards

Device Queue

Queue of processes waiting for a particular I/O device.

25
New cards

Long-Term Scheduler (Job Scheduler)

OS component that selects which jobs are loaded into memory.

26
New cards

Short-Term Scheduler (CPU Scheduler)

Component that chooses which ready process gets the CPU next.

27
New cards

Medium-Term Scheduler

Scheduler that swaps processes in and out of memory to improve the mix; supports swapping.

28
New cards

CPU-Bound Process

Process spending most of its time doing computations and making few I/O requests.

29
New cards

I/O-Bound Process

Process that spends more time on I/O than CPU computation.

30
New cards

Swapping

Removing a process from memory and later reloading it to continue execution.

31
New cards

Parent Process

A process that creates one or more child processes.

32
New cards

Child Process

Process created by another process (its parent).

33
New cards

Process Identifier (PID)

Unique integer assigned to each process for indexing its attributes.

34
New cards

Process Tree

Hierarchical representation showing parent-child relationships among processes.

35
New cards

Orphan Process

Child whose parent has terminated; re-parented to init in UNIX/Linux.

36
New cards

Zombie Process

Terminated process whose parent has not yet called wait(); its PCB entry remains for exit status.

37
New cards

Cascading Termination

OS-initiated termination of all child processes if a parent exits in systems that disallow independent children.

38
New cards

Interprocess Communication (IPC)

Mechanisms permitting processes to exchange data and synchronize.

39
New cards

Independent Process

Process that cannot affect or be affected by others and shares no data.

40
New cards

Cooperating Process

Process that can affect or be affected by others via shared data or communication.

41
New cards

Shared-Memory Model

IPC model where cooperating processes communicate by reading/writing a common memory region.

42
New cards

Message-Passing Model

IPC model where processes exchange data via send() and receive() operations.

43
New cards

Producer–Consumer Problem

Classic shared-memory synchronization scenario where producers generate data consumed by consumers.

44
New cards

Bounded Buffer

Fixed-size circular buffer used in producer-consumer problem; full/empty conditions require waiting.

45
New cards

Unbounded Buffer

Logical buffer with no capacity limit; producer never waits for space.

46
New cards

Mailbox (Port)

Named object for indirect message passing where multiple processes can deposit and remove messages.

47
New cards

Blocking Send

Send operation that suspends the sender until the message is received.

48
New cards

Nonblocking Send

Send operation that returns immediately after queuing the message.

49
New cards

Blocking Receive

Receive operation that blocks until a message is available.

50
New cards

Nonblocking Receive

Receive that returns immediately with a message or null if none available.

51
New cards

Zero-Capacity Link

Message queue of length zero; sender blocks until receiver accepts the message.

52
New cards

Bounded-Capacity Link

Message queue with finite length n; sender blocks only when the queue is full.

53
New cards

Unbounded-Capacity Link

Message queue with infinite length; sender never blocks.

54
New cards

Scheduler

OS module that makes decisions about which process or thread runs next.

55
New cards

Dispatcher

Module that performs context switch, mode switch, and jumps to selected process code.

56
New cards

Preemptive Scheduling

Scheduling where the OS can take the CPU away from a running process.

57
New cards

Non-Preemptive Scheduling

Scheduling where a running process keeps the CPU until it blocks or terminates.

58
New cards

CPU Burst

Period during which a process runs on the CPU before doing I/O.

59
New cards

I/O Burst

Time interval where a process waits for I/O after a CPU burst.

60
New cards

Scheduling Criteria – CPU Utilization

Percentage of time the CPU is busy; higher is better.

61
New cards

Scheduling Criteria – Throughput

Number of processes completed per time unit.

62
New cards

Scheduling Criteria – Turnaround Time

Total time from process submission to completion.

63
New cards

Scheduling Criteria – Waiting Time

Total time a process spends in the ready queue.

64
New cards

Scheduling Criteria – Response Time

Time from request submission to first response output.

65
New cards

Fairness

Degree to which each process gets an equitable share of CPU time.

66
New cards

FCFS Scheduling

First-Come, First-Served algorithm that runs jobs in arrival order; non-preemptive.

67
New cards

Convoy Effect

Situation in FCFS where one long CPU-bound job delays many I/O-bound jobs.

68
New cards

Shortest Job First (SJF)

Algorithm that selects the process with the shortest CPU burst; optimal for avg waiting time.

69
New cards

Shortest Remaining Time First (SRTF)

Preemptive version of SJF that always runs the job with the smallest remaining burst.

70
New cards

Priority Scheduling

Algorithm that allocates CPU to highest-priority process; can be preemptive or non-preemptive.

71
New cards

Starvation

Indefinite blocking of low-priority processes in priority scheduling.

72
New cards

Aging

Technique of gradually increasing waiting processes’ priorities to prevent starvation.

73
New cards

Round Robin (RR)

Preemptive algorithm using time quantum q and cyclic order through ready queue.

74
New cards

Time Quantum (Time Slice)

Fixed CPU time a process can run before being preempted in RR scheduling.

75
New cards

Thread

Lightweight unit of CPU utilization within a process, having its own PC, registers, and stack but sharing code and data.

76
New cards

Multithreaded Process

Single process containing multiple threads that share resources but execute concurrently.

77
New cards

Advantages of Threads

Lower context-switch overhead, easier communication, improved concurrency, and better multiprocessor utilization.