Computer Science  ·  Level 6
Operating Systems Configuration
Chapter 4: Memory management
📚 3 Topics
⚑ What you will be able to do

By the end of this chapter, you will be able to:

  • Safely and correctly perform disk operations to maintain data integrity.
  • Accurately monitor the computer clock system to ensure proper timekeeping.
  • Select the most appropriate disk based on the user's needs.
  • Carry out disk management tasks correctly according to user requirements.
  • Safely and appropriately choose removable disks for specific tasks.

Mastering these skills will help you keep computer systems running smoothly and reliably in any workplace.

4.1 Memory Management

Memory management is the part of the operating system that controls the computer's main memory (RAM): it keeps track of which parts are in use and by which process, gives memory to programs when they start or ask for more, and takes it back when they finish. Because RAM is limited and shared by many running programs, good memory management decides how fast and how reliably the whole system runs. Example: when a records clerk at a land registry office in Machakos opens a large scanned title deed while the payroll system is running, the operating system finds free memory for the new document without disturbing the payroll program.

4.1.1 Definition

Memory management is the function of an operating system that handles and coordinates primary memory, moving processes and data between main memory and secondary storage during execution. It decides which process gets memory, when and how much, tracks every memory location as allocated or free, and frees memory when a process ends.

Key terms

  • Main memory (RAM): Fast, volatile storage that holds the programs and data the CPU is using now.
  • Logical (virtual) address: The address a program uses, generated by the CPU.
  • Physical address: The actual location in RAM where the data is stored.
  • Address space: The set of addresses a process may use.
  • Memory allocation and deallocation: Giving memory to a process and taking it back when the process no longer needs it.
  • Swapping: Moving a whole process, or parts of it, between RAM and disk to free memory for others.

4.1.2 Objectives of Memory management

The memory manager has several objectives, all aimed at letting many programs share limited RAM safely and efficiently.

  • Relocation: Programs can be loaded anywhere in memory, and moved during execution, because logical addresses are translated to physical addresses at run time.
  • Protection: A process must not read or change memory that belongs to another process or to the operating system; the hardware checks every access.
  • Sharing: Where useful, several processes may share the same memory, such as one copy of a library or a shared data area, under control.
  • Logical organisation: Programs are written as modules (code, data, stack); memory management supports this view, for example through segmentation.
  • Physical organisation: Data is moved between main memory and secondary storage so that programs larger than RAM, or more programs than fit at once, can run.
  • Efficient utilisation: Memory is kept as fully and usefully occupied as possible, reducing waste through fragmentation.
  • Support for multiprogramming: Several processes are kept in memory at once so that the CPU always has work.

4.1.3 Components of the Memory Management unit

The memory management unit (MMU) is the hardware, usually built into the CPU, that translates the logical addresses used by programs into physical addresses in RAM and enforces memory protection. The operating system sets up the tables the MMU uses, and the MMU applies them on every memory access.

  • Relocation (base) register: Holds the starting physical address of the process; it is added to every logical address to give the physical address.
  • Limit register: Holds the size of the process's address space; any address beyond it causes a trap to the operating system, which protects other processes.
  • Page table and page table base register: The page table maps each page of a process to a frame in RAM; the base register points to the current process's page table.
  • Translation lookaside buffer (TLB): A small, fast cache of recent page-to-frame translations, so most addresses are translated without reading the page table in memory.
  • Segment table: In segmented systems, holds the base and limit of each segment.
  • Protection and status bits: Bits in each table entry mark a page as read-only, read-write or executable, present or not present in RAM, and modified (dirty) or not.
  • Page fault handling: When a program uses a page not in RAM, the MMU raises a page fault and the operating system loads the page from disk.
The rest of this chapter
🔒

Create a free account to open more of this chapter.

Free: practical guides, quick cards, workplace scenarios and more.

Create a free account
🔒4.2 Memory management techniques

Memory management techniques are the methods an operating system uses to divide main memory among processes. Early systems gave each program one continuous block of memory (contiguous allocation); modern systems break programs into pieces that can sit anywhere…

🔒4.3 Demonstration of virtual memory settings – Increasing the Windows page file size

In Windows, virtual memory is backed by a hidden file on disk called the paging file, pagefile.sys, usually at the root of drive C. When RAM fills up, Windows moves less-used pages of memory into this file and reads them back when they are needed again. By def…

Chapter Practical Activities

Practical 1: Configure device drivers for keyboard and scanner input devices

Computer Science · Level 6
Operating Systems Configuration
PRACTICAL ASSESSMENT
TIME: 4 HOURS
⬇ PDFCandidate Instructions (Candidate Tool)

Type: Individual

INSTRUCTIONS TO CANDIDATE:
1.  You are required to perform the following task:
i.  Install and configure the device drivers for a USB keyboard and a flatbed scanner connected to a Windows 10 laptop ensuring both devices are fully operational.
2.  You have been provided with the following resources for the practical task:
Tools & EquipmentMaterials
Laptop with Windows 10 OS installed
USB Keyboard
Flatbed Scanner
Device driver installation CDs or USB drives
Internet connection
⬇ PDFResources Required (Cutting List)
S/NItemQuantity
1Laptop with Windows 10 OS installed1 Pc per Candidate
2USB Keyboard1 Pc per Candidate
3Flatbed Scanner1 Pc per Candidate
4Device driver installation CDs or USB drives1 Set per Candidate
5Internet connection1 Connection per Candidate
⬇ PDFAssessor Guide
Items to be EvaluatedMarks AvailableMarks ObtainedComments
TASK 1: Prepare and verify hardware connections
Observed proper laboratory rules and PPE usage
(Award 2 marks for correct PPE and workstation setup, zero if not)
2
Connected USB keyboard and scanner to the laptop correctly
(Award 3 marks for correct connection without errors)
3
Powered on devices and laptop to check hardware detection
(Award 2 marks for powering devices and observing detection)
2
Sub-Total7
TASK 2: Install device drivers
Accessed Device Manager in Windows 10
(Award 2 marks for correct navigation to Device Manager)
2
Installed the keyboard device driver using installation media or Windows update
(Award 5 marks for successful installation without errors)
5
Installed the scanner device driver using installation media or downloaded latest drivers
(Award 5 marks for successful installation without errors)
5
Sub-Total12
TASK 3: Configure and test input devices
Configured keyboard settings (language layout, repeat delay, etc.)
(Award 3 marks for correct configuration changes)
3
Configured scanner settings (resolution, scanning mode)
(Award 3 marks for correct configuration changes)
3
Tested keyboard input functionality using Notepad or similar application
(Award 3 marks for successful keyboard input test)
3
Tested scanner functionality by performing a scan and saving the image
(Award 5 marks for successful scan and file save)
5
Sub-Total14
PRODUCT CHECKLIST
Keyboard and scanner drivers correctly installed and configured with verified operational tests
(Award 7 marks for fully functioning devices with correct driver installation and configuration)
7
Sub-Total7
GRAND TOTAL40
ASSESSMENT OUTCOME:   ☐ Competent    ☐ Not Yet Competent (competent if at least 50%)

Practical 2: Installation and Configuration of Printer and Display Output Device Drivers

Computer Science · Level 6
Operating Systems Configuration
PRACTICAL ASSESSMENT
TIME: 4 HOURS
⬇ PDFCandidate Instructions (Candidate Tool)

Type: Individual

INSTRUCTIONS TO CANDIDATE:
1.  You are required to perform the following task:
i.  Install and configure the HP LaserJet Pro M404dn printer and Dell P2419H 24-inch LED monitor drivers on the desktop computer running Windows 10.
2.  You have been provided with the following resources for the practical task:
Tools & EquipmentMaterials
Desktop computer with Windows 10 OS
Laser printer model HP LaserJet Pro M404dn
24-inch LED monitor model Dell P2419H
USB flash drive with driver installation files
Ethernet cable Cat5e
Keyboard and mouse set
⬇ PDFResources Required (Cutting List)
S/NItemQuantity
1Desktop computer with Windows 10 OS1 Pc per Candidate
2Laser printer model HP LaserJet Pro M404dn1 Pc per Candidate
324-inch LED monitor model Dell P2419H1 Pc per Candidate
4USB flash drive with driver installation files1 Pc per Candidate
5Ethernet cable Cat5e1 Pc per Candidate
6Keyboard and mouse set1 Set per Candidate
⬇ PDFAssessor Guide
Items to be EvaluatedMarks AvailableMarks ObtainedComments
TASK 1: Printer Driver Installation and Configuration
Observed laboratory safety and workstation setup rules
(Award 2 marks for compliance, 0 if not)
2
Connected the HP LaserJet Pro M404dn printer to the computer via USB or network
(Award 3 marks for correct connection)
3
Accessed Device Manager and identified printer device
(Award 2 marks for correct navigation)
2
Installed printer driver from USB flash drive
(Award 4 marks for correct driver installation)
4
Configured printer settings: set as default printer and print test page
(Award 3 marks for correct configuration and testing)
3
Saved screenshot of successful printer installation as 'printerdrv'
(Award 2 marks for correct screenshot saved)
2
Sub-Total16
TASK 2: Display Driver Installation and Configuration
Connected Dell P2419H monitor to desktop computer using appropriate cable
(Award 3 marks for proper connection)
3
Accessed Display Settings and verified monitor detection
(Award 3 marks for correct detection)
3
Installed or updated display driver from USB flash drive
(Award 4 marks for correct driver installation/update)
4
Configured display resolution to native 1920x1080 pixels
(Award 3 marks for correct resolution setting)
3
Saved screenshot of successful display configuration as 'displaydrv'
(Award 2 marks for correct screenshot saved)
2
Sub-Total15
PRODUCT CHECKLIST
Printer installed and configured correctly with successful test print
(Award 10 marks if printer functions correctly without errors)
10
Display monitor configured to native resolution with clear, stable output
(Award 9 marks for correct resolution and stable display output)
9
Sub-Total19
GRAND TOTAL50
ASSESSMENT OUTCOME:   ☐ Competent    ☐ Not Yet Competent (competent if at least 50%)
🔒

Free: practical guides, quick cards, workplace scenarios and more.

Create a free account
🔒Manage Input and Output Device Permissions on Windows OSPractical 3
🔒Input and Output Device Troubleshooting and ResolutionPractical 4
🔒Configure Input/Output Buffering Settings for Optimized Device PerformancePractical 5
🔒Implement Input/Output Scheduling Policies on a Linux SystemPractical 6
🔒Monitor and Report Input/Output Device Performance Using System ToolsPractical 7
🔒Configure virtual input and output devices on a Windows 10 systemPractical 8
🔒Configure Network Sharing of Input/Output DevicesPractical 9
🔒Configure Power Management Settings for Input and Output DevicesPractical 10
Am I competent?

At the start of this chapter we promised you would be able to:

  • Safely and correctly perform disk operations to maintain data integrity.
  • Accurately monitor the computer clock system to ensure proper timekeeping.
  • Select the most appropriate disk based on the user's needs.
  • Carry out disk management tasks correctly according to user requirements.
  • Safely and appropriately choose removable disks for specific tasks.

Tick each one you can genuinely do.

So, are you there yet?

You're competent when you can confidently do 50% or more of what this chapter promised.

Sign in to record how you're doing.