OPS 1-4 Theory

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

1/168

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 10:21 PM on 3/28/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

169 Terms

1
New cards

Operating system

Chief software component of the computer system; manages all hardware and software, acts as an interface between user and system, controls and manages computer resources, schedules tasks, manages storage, and makes the computer system convenient to use effectively.

2
New cards

Components of a computer system

Hardware, Operating system, Application programs, and Users.

3
New cards

Hardware

Provides basic computing resources such as CPU, memory, and I/O devices.

4
New cards

Operating system role

Controls and coordinates the use of the hardware among the various application programs for the various users.

5
New cards

Application programs

Define the ways in which the system resources are used to solve the computing problems of the users; examples include compilers, database systems, video games, and business programs.

6
New cards

Users

People, machines, or other computers.

7
New cards

Three types of program

User / application program, System program, Driver program.

8
New cards

User / application program

Programs used by users to perform tasks; e.g. MS Office.

9
New cards

System program

Interface between user and computer; e.g. defragmentation, BIOS, system restore.

10
New cards

Driver program

Communicates an I/O device with the computer.

11
New cards

Four sub-system managers of OS

Memory manager, Processor manager, Device manager, File manager.

12
New cards

Network manager

Coordinates the services required for multiple systems to work cohesively together and manages shared network resources such as memory space, processors, printers, databases, and applications.

13
New cards

User Command Interface

Provides user communication with the operating system; user issues commands to the OS; unique to each operating system and may vary between versions.

14
New cards

Two primary user command interface types

Graphical User Interface (GUI) and Command Line Interface (CLI).

15
New cards

Tasks of a manager

Monitor its resources continuously; enforce policies determining who gets what, when, and how much; allocate the resource; de-allocate the resource.

16
New cards

Memory manager

In charge of main memory (RAM).

17
New cards

Functions of the memory manager

Preserves space in main memory occupied by the OS; checks validity and legality of memory space requests; allocates memory to processes and de-allocates it when they are done; sets up a memory tracking table; tracks usage of memory by sections.

18
New cards

Processor manager

In charge of allocating the Central Processing Unit (CPU).

19
New cards

Functions of the processor manager

Tracks process status; handles jobs as they enter the system through the Job Scheduler; manages creation and deletion of processes; manages each process within those jobs through the Process Scheduler.

20
New cards

Device manager

In charge of monitoring peripheral devices, channels, and control units.

21
New cards

Functions of the device manager

Chooses the most efficient resource allocation method; allocates and de-allocates devices; consists of policies and procedures for handling I/O devices; accepts input from user and gives corresponding output.

22
New cards

File manager

Manages files stored on disk.

23
New cards

Functions of the file manager

Tracks every file in the system; controls user/program modification restrictions; enforces user/program resource access restrictions; allocates resources by opening files and de-allocates resources by closing files.

24
New cards

Cooperation issues

No single manager performs tasks in isolation; each element of an operating system performs individual tasks and harmoniously interacts with other managers.

25
New cards

Cloud computing

Practice of using Internet-connected resources to perform processing, storage, or other operations while the operating system maintains responsibility for managing local resources and coordinating data transfer to and from the cloud.

26
New cards

Why use cloud computing

Social networking, e-mail services, document hosting services, backup services, banking and financial services, health care, and government services.

27
New cards

Types of operating systems

Batch processing, Time-sharing, Hybrid OS, Real-time OS, Distributed OS, Embedded OS, Interactive OS.

28
New cards

Two distinguishing features of operating systems

Response time and how data enters into the system.

29
New cards

Features of operating systems

Multiprocessing, Multitasking, Multiprogramming.

30
New cards

Multiprocessing

Allows parallel program execution; two or more CPUs handle jobs.

31
New cards

Multitasking

Handles two or more programs at the same time from a user’s perception; the CPU runs so fast that two or more jobs seem to execute at the same time.

32
New cards

Multiprogramming

Two or more programs are stored in main memory at the same time; when one job needs to wait, the CPU switches to another job, then returns when the first job finishes waiting; efficiently utilizes computing resources.

33
New cards

Most common overall goal of OS design

Maximize use of the system’s resources such as memory, processing, devices, and files, and minimize downtime.

34
New cards

Design considerations

RAM resources, CPUs available, likely peripheral devices, networking capability, security requirements.

35
New cards

Program

A non-active set of instructions stored on disk.

36
New cards

Job

A program from the moment it is selected for execution until it has finished running and becomes a program again.

37
New cards

Process

A program in execution; it has started but has not finished.

38
New cards

Thread

Multiple actions that can be executed at the same time; a process can be made up of several threads.

39
New cards

Memory management

Management of main memory; system performance depends on how much memory is available and how well memory is optimized during job processing.

40
New cards

Logical address

A value generated by the CPU that specifies a generic location relative to the program; also called a virtual or relative address.

41
New cards

Physical address

An actual address in the main memory device; a logical address added to the starting location of the program in main memory.

42
New cards

Operating systems must employ techniques to

Track where and how a program resides in memory and convert logical addresses into physical addresses.

43
New cards

Four types of memory allocation schemes

Single-user contiguous scheme, Fixed partitions, Dynamic partitions, Relocatable dynamic partitions.

44
New cards

Single-user contiguous scheme

Entire program loaded into memory; one contiguous memory space allocated as needed; jobs processed sequentially; the memory manager performs minimal work.

45
New cards

Disadvantages of single-user contiguous scheme

No support for multiprogramming or networking; not cost effective; program size must be less than memory size to execute.

46
New cards

Fixed partitions

Main memory is partitioned at system startup; one contiguous partition per job; permits multiprogramming; partition sizes remain static.

47
New cards

Fixed partition requirements

Protection of the job’s memory space and matching job size with partition size.

48
New cards

Fixed partition job allocation method

First available partition with required size.

49
New cards

Disadvantages of fixed partitions

Requires contiguous loading of the entire program; arbitrary partition sizes lead to undesired results; large jobs have longer turnaround time; memory waste occurs through internal fragmentation.

50
New cards

Dynamic partitions

Main memory is partitioned as jobs are loaded; jobs are given the memory requested when loaded; one contiguous partition per job.

51
New cards

Dynamic partition job allocation method

First come, first serve allocation method.

52
New cards

Advantage of dynamic partitions

Memory waste is comparatively small within partitions.

53
New cards

Disadvantages of dynamic partitions

Full memory utilization occurs only during loading of the first jobs; later allocations can waste memory; external fragmentation occurs between blocks.

54
New cards

Fragmentation

Internal fragmentation and External fragmentation.

55
New cards

Internal fragmentation

Allocated memory may be slightly larger than requested memory; this difference is memory internal to a partition but not being used.

56
New cards

External fragmentation

Dynamic allocation creates unusable fragments of free memory between blocks of busy memory; it is not contiguous.

57
New cards

Reducing external fragmentation

External fragmentation is reduced by compaction.

58
New cards

First-fit

First partition fitting the requirements; leads to fast allocation of memory space.

59
New cards

Best-fit

Smallest partition fitting the requirements; results in least wasted space; internal fragmentation is reduced, but not eliminated.

60
New cards

Worst-fit

Allocates the program to the largest partition big enough to hold it; opposite of best-fit; good for exploring theory of memory allocation, but not the best choice for an actual system.

61
New cards

Next-fit

Starts searching from the last allocated block for the next available block when a new job arrives.

62
New cards

Deallocation

Freeing allocated memory space.

63
New cards

Deallocation in a fixed-partition system

Straightforward process; the Memory Manager resets the status of the job’s memory block to “free” upon job completion.

64
New cards

Deallocation in a dynamic-partition system

More complex; the algorithm tries to combine free areas of memory.

65
New cards

Three dynamic partition deallocation cases

The block to be deallocated is adjacent to another free block; between two free blocks; isolated from other free blocks.

66
New cards

Relocatable dynamic partitions

The Memory Manager relocates programs, gathers all empty blocks together, compacts the empty blocks, and makes one block of memory large enough to accommodate some or all of the jobs waiting to get in.

67
New cards

Compaction

Reclaiming fragmented sections of memory space; every program in memory must be relocated so programs become contiguous.

68
New cards

Free list after relocation

Must show the partition for the new block of free memory.

69
New cards

Busy list after relocation

Must show the new locations for all jobs already in process that were relocated.

70
New cards

Bounds register

Stores the highest (last) location accessible by each program.

71
New cards

Relocation register

Contains the value that must be added to each address referenced in the program so the correct memory addresses can be accessed after relocation.

72
New cards

Relocation register value when a program is not relocated

Zero is stored in the program’s relocation register.

73
New cards

Purpose of compacting and relocating

Optimizes use of memory and improves throughput.

74
New cards

Options for timing compaction

When a certain percentage of memory is busy; when there are jobs waiting to get in; after a prescribed amount of time has elapsed.

75
New cards

Goal of compaction timing

Optimize processing time and memory use while keeping overhead as low as possible.

76
New cards

Paged Memory Allocation

Incoming job is divided into pages of equal size; memory manager determines number of pages, locates empty page frames, and loads all program pages into page frames; the program is stored in non-contiguous page frames.

77
New cards

Best condition for paged memory allocation

Pages, sectors, and page frames should be the same size.

78
New cards

Advantages of paged memory allocation

More efficient memory use; compaction is eliminated because there is no external fragmentation.

79
New cards

Problem introduced by paging

Increased operating system overhead because the job’s pages must be tracked.

80
New cards

Internal fragmentation in paging

Occurs only in the job’s last page frame.

81
New cards

Three tables for tracking pages

Job Table (JT), Page Map Table (PMT), Memory Map Table (MMT).

82
New cards

Job Table (JT)

Contains information for each active job, including job size and the memory location of the job’s PMT.

83
New cards

Page Map Table (PMT)

Contains information for each page, including page number and memory address.

84
New cards

Memory Map Table (MMT)

Has one entry for each page frame showing its location and free/busy status.

85
New cards

Line displacement / offset

Shows how far away a line is from the beginning of its page and is used to locate that line within its page frame.

86
New cards

Determining page number and displacement

Divide the job space address by the page size; the integer quotient is the page number and the remainder is the displacement.

87
New cards

Demand paging

Pages are swapped between main memory and secondary storage.

88
New cards

Page replacement policies

FIFO, LRU, MRU.

89
New cards

FIFO

First-In First-Out; removes the oldest page.

90
New cards

LRU

Least Recently Used; removes the page not referenced for the longest time.

91
New cards

MRU

Most Recently Used; removes the most recently used page.

92
New cards

Working set

During any phase of execution, a program references only a small fraction of its pages.

93
New cards

Locality of reference

Means that during any phase of execution, a program references only a small fraction of its pages.

94
New cards

Segmented memory allocation

Memory is divided into logical segments rather than equal-sized pages.

95
New cards

Address in segmented memory allocation

Composed of the segment number and the displacement.

96
New cards

Segmented/demand paged memory allocation

Combines segmentation and paging; segments are divided into pages.

97
New cards

3D addressing in segmented/demand paging

Segment, page, offset.

98
New cards

Associative memory

Several registers allocated to each active job; used to associate several segment and page numbers belonging to the job being processed and to speed up the process.

99
New cards

Virtual memory

Technique that allows execution of a program bigger than the physical memory of the computer system; the OS loads only the parts currently needed, while the rest is kept on disk until needed.

100
New cards

Virtual memory illusion

Gives the illusion that the system has a much larger memory than is actually available.

Explore top flashcards

flashcards
Niemiecki - 7.03
65
Updated 382d ago
0.0(0)
flashcards
Kapitel 2.2
52
Updated 1212d ago
0.0(0)
flashcards
Ap world unit 8 vocab
64
Updated 1082d ago
0.0(0)
flashcards
Human Evolution Unit 1
46
Updated 1132d ago
0.0(0)
flashcards
Executive Branch Zehe Test Prep
60
Updated 837d ago
0.0(0)
flashcards
exam 2 - id
48
Updated 168d ago
0.0(0)
flashcards
Niemiecki - 7.03
65
Updated 382d ago
0.0(0)
flashcards
Kapitel 2.2
52
Updated 1212d ago
0.0(0)
flashcards
Ap world unit 8 vocab
64
Updated 1082d ago
0.0(0)
flashcards
Human Evolution Unit 1
46
Updated 1132d ago
0.0(0)
flashcards
Executive Branch Zehe Test Prep
60
Updated 837d ago
0.0(0)
flashcards
exam 2 - id
48
Updated 168d ago
0.0(0)