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

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

  • Monitor computer resources effectively to keep the system running smoothly.
  • Track process states and transitions accurately to maintain optimal system performance.
  • Apply process scheduling correctly to manage running tasks efficiently.
  • Use Task Manager confidently and effectively according to work requirements.
  • Utilize the performance monitor tool accurately to assess system performance during tasks.

Mastering these skills will help you keep computers running efficiently, which is essential for any IT or technical role!

Process management is a fundamental function of operating systems that directly impacts the efficiency and reliability of computer systems used by Kenyan professionals in software development, data management, and systems administration. In the context of Kenyan IT firms and institutions such as banks, universities, and government agencies, effective process management ensures that multiple applications run smoothly without resource conflicts. This chapter explores how operating systems handle processes, the mechanisms involved, and the implications for computing environments common in Kenya’s growing digital economy.

1.1 Process Management

The Concept of a Process

A process is an instance of a program in execution, representing a dynamic entity that requires system resources such as CPU time, memory, and I/O devices. Unlike a static program stored on disk, a process encapsulates the program code, current activity, and associated data necessary for execution. For instance, when a software developer at a Nairobi-based tech startup compiles code or runs debugging tools, each task is managed as a separate process by the operating system.

Characteristics of a Process
  • Dynamic Nature: A process is active, constantly changing state as it executes instructions, unlike a program which is static.
  • Resource Ownership: A process holds resources including CPU registers, memory space, and files, which it uses during execution.
  • Process State: It transitions through states such as new, ready, running, waiting, and terminated depending on execution progress and resource availability.
  • Process Control Block (PCB): The operating system maintains a PCB for each process containing essential information like process ID, state, CPU registers, and priority.
  • Concurrency: Multiple processes may run concurrently, sharing CPU time through scheduling, ensuring efficient utilization of system resources.

Process States and State Transitions

Processes move through various states during their lifecycle, which allows the operating system to manage execution efficiently and fairly. Understanding these states is essential for system administrators and developers who monitor and optimize application performance in environments such as university computer labs or financial institutions.

Common Process States
  • New: The process is being created and initialized by the operating system.
  • Ready: The process is prepared to execute and waiting in the ready queue for CPU allocation.
  • Running: The process currently executes instructions on the CPU.
  • Waiting (Blocked): The process is suspended, waiting for an event such as I/O completion or resource availability.
  • Terminated: The process has completed execution or has been aborted.
Transition Events
  • Admitted: A new process moves to the ready state.
  • Scheduler Dispatch: A ready process is selected and moved to running.
  • Interrupt: A running process may be interrupted and returned to ready.
  • I/O or Event Wait: A running process may wait for resources and move to waiting.
  • I/O Completion: A waiting process returns to ready.
  • Exit: A running process finishes or terminates.

Process Scheduling and Its Algorithms

Process scheduling is the method by which the operating system allocates CPU time to multiple processes, balancing responsiveness and throughput. In Kenya’s ICT firms and government offices where multitasking is common, scheduling affects how smoothly applications perform and how users experience system responsiveness.

Objectives of Process Scheduling
  • Maximize CPU Utilization: Keeping the CPU as busy as possible.
  • Provide Fairness: Ensuring all processes receive appropriate CPU time.
  • Minimize Waiting Time: Reducing the time processes spend in the ready queue.
  • Optimize Throughput: Increasing the number of processes completed per unit time.
  • Guarantee Responsiveness: Especially important for interactive applications.
Common Scheduling Algorithms
  • First-Come, First-Served (FCFS): Processes are scheduled in the order they arrive, straightforward but may cause long waiting times.
  • Shortest Job Next (SJN): Prioritizes the shortest processes first, improving average waiting time but requiring knowledge of process length.
  • Round Robin (RR): Allocates fixed time slices to each process in a cyclic order, widely used for time-sharing systems.
  • Priority Scheduling: Processes are assigned priorities; higher priority processes execute first, which may lead to starvation of low-priority tasks.
  • Multilevel Queue Scheduling: Divides processes into queues based on priority or type, each with its own scheduling algorithm.

Interprocess Communication and Synchronization

Processes often need to cooperate and share data, particularly in complex software systems used in Kenyan universities or financial institutions. Interprocess communication (IPC) mechanisms and synchronization techniques prevent conflicts and ensure data integrity when multiple processes access shared resources.

Methods of Interprocess Communication
  • Shared Memory: Processes access common memory space for fast communication, requiring synchronization to avoid conflicts.
  • Message Passing: Processes exchange messages through the operating system, suitable for distributed systems.
  • Pipes and Named Pipes: Facilitate communication between related or unrelated processes.
  • Sockets: Enable communication over networks, critical for distributed applications.
Synchronization Techniques
  • Mutexes (Mutual Exclusion Locks): Prevent multiple processes from accessing a critical section simultaneously.
  • Semaphores: Counters used to control access to shared resources, supporting signaling between processes.
  • Monitors: High-level synchronization constructs that combine mutual exclusion with condition variables.
  • Deadlock Handling: Mechanisms to detect, prevent, or recover from deadlocks where processes wait indefinitely for resources.

Example: At a Nairobi-based bank, multiple processes handling customer transactions must synchronize updates to account balances to prevent inconsistencies.

Practice Questions

  1. Define a process and explain its key characteristics in the context of operating systems. (10 marks)
  2. Describe the different states of a process and the transitions between these states. (12 marks)
  3. Compare and contrast the Round Robin and Priority Scheduling algorithms, highlighting their advantages and disadvantages. (15 marks)
  4. Explain the importance of interprocess communication and describe two methods used to achieve it. (13 marks)
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
🔒3.1 Process management

Process management is the part of the operating system that creates, schedules, coordinates and ends the programs running on a computer. Every running application, background service and system task is a process, and the operating system must share the CPU, me…

🔒3.2 Computer Resources

In the context of process management within operating systems, understanding computer resources is fundamental. These resources represent the hardware and software components that processes require to execute efficiently. For Kenyan computer science profession…

🔒Process states and their transition

In computer science, particularly in operating system management, understanding process states and their transitions is fundamental for efficient multitasking and resource allocation. In Kenya’s growing technology sector, software developers and system adminis…

🔒3.4 Process scheduling

Process scheduling is the activity by which the operating system decides which process gets the CPU, when, and for how long. Because there are usually more ready processes than processor cores, the scheduler must share CPU time in a way that keeps the processo…

🔒3.3 Process states and their transition

From creation to termination a process passes through a series of states, and the operating system moves it from one state to another in response to events such as scheduling decisions, I/O requests and interrupts. Tracking states lets the operating system kee…

🔒3.5 Demonstration of Task Manager

Task Manager is the built-in Windows utility for viewing and controlling running applications, processes, services and system performance. It is the first tool a support technician opens when a computer is slow or an application stops responding, because it sh…

🔒3.6 Performance monitor tools in process management

Performance monitor tools are utilities that measure how processes and system resources behave over time: CPU usage, memory, disk and network activity, process and thread counts. Where Task Manager gives a quick snapshot, performance monitoring tools record da…

Chapter Summary

This chapter explored the fundamentals of process management within operating systems, beginning with clear definitions of key concepts such as processes and threads. It examined the various functions a process performs to efficiently manage computer resources. The discussion then moved to the different states a process can occupy, including ready and waiting, and how transitions occur between these states. Process scheduling was analyzed in detail, highlighting essential features and the different types of schedulers involved in managing task execution. Various scheduling algorithms were outlined to demonstrate how operating systems prioritize and allocate CPU time. Practical demonstrations included the use of Task Manager to observe active processes and CPU queues, as well as techniques for stopping processes. Finally, the chapter reviewed performance monitoring tools that help assess system efficiency and resource utilization.

Self-Assessment

🔒 PDFDownload this self-assessment, with answers

A. Written Assessment

  1. Define the term process in the context of operating systems. (2 marks)
  2. What is the difference between a process and a thread? (3 marks)
🔒20 more in this section.

Chapter Examination Questions

🔒 PDFDownload these examination questions, with worked answers

SECTION A (40 Marks) - Answer ALL Questions

  1. Define a process and explain how it differs from a thread in modern operating systems. Provide an example of their use in a Kenyan university’s computer lab environment. (4 marks)
  2. List and explain four main functions of a process in managing computer resources effectively. (4 marks)
🔒18 more in this section.

Chapter Practical Activities

Practical 1: Identify and Explain Process Components Using System Tools

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.  Identify and explain the components of a running process and thread using Task Manager and Process Explorer on a Windows 10 PC.
2.  You have been provided with the following resources for the practical task:
Tools & EquipmentMaterials
Windows 10 PC with Administrator AccessInternet Access
Task Manager
Process Explorer
Screen Capture Software
⬇ PDFResources Required (Cutting List)
S/NItemQuantity
1Windows 10 PC with Administrator Access1 Pc per Candidate
2Internet Access1 connection per Candidate
3Screen Capture Software1 per Candidate
⬇ PDFAssessor Guide
Items to be EvaluatedMarks AvailableMarks ObtainedComments
TASK 1: Preparation and Tool Launch
Observed laboratory rules including use of PPE and workstation setup
(Award 2 marks for proper PPE and workstation setup)
2
Launched Task Manager and navigated to the Processes tab
(Award 2 marks for successfully opening Task Manager and locating Processes tab)
2
Launched Process Explorer with administrator privileges
(Award 2 marks for opening Process Explorer as administrator)
2
Sub-Total6
TASK 2: Identification of Process Components
Identified and listed the Process ID (PID), process name, and status from Task Manager
(Award 3 marks for correct identification and listing of PID, name, and status)
3
Opened properties of a selected process in Process Explorer and identified the Process Control Block (PCB) information such as handles, threads, and memory usage
(Award 4 marks for correctly identifying PCB components in Process Explorer)
4
Displayed thread information within Process Explorer for the selected process, including thread ID and CPU usage
(Award 3 marks for correct thread details display)
3
Sub-Total10
TASK 3: Explanation and Documentation
Provided a written or typed explanation of what a process is, including its components
(Award 4 marks for a clear and accurate explanation of process components)
4
Provided a written or typed explanation of what a thread is and its role within a process
(Award 4 marks for a clear and accurate explanation of thread concepts)
4
Provided a written or typed explanation of the Process Control Block (PCB) and its significance in process management
(Award 4 marks for a clear and accurate explanation of PCB)
4
Saved screenshots of Task Manager and Process Explorer showing process and thread details; named screenshots as 'taskmgr', 'procexp'
(Award 4 marks for correctly saved and named screenshots)
4
Sub-Total16
PRODUCT CHECKLIST
Accurate identification and documentation of process and thread components matching system tool outputs
(Award 8 marks for completeness and accuracy of documented components)
8
Sub-Total8
GRAND TOTAL40
ASSESSMENT OUTCOME:   ☐ Competent    ☐ Not Yet Competent (competent if at least 50%)

Practical 2: Demonstrate process states and transitions using system tools

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.  Demonstrate the process states Ready, Waiting, Running, and Complete by simulating and observing transitions on a Windows 10 PC using Task Manager and Process Explorer.
2.  You have been provided with the following resources for the practical task:
Tools & EquipmentMaterials
Windows 10 or later PC
Task Manager
Command Prompt
Process Explorer tool
⬇ PDFResources Required (Cutting List)
S/NItemQuantity
1Windows 10 or later PC1 Pc per Candidate
2Task Manager1 instance per Candidate
3Command Prompt1 instance per Candidate
4Process Explorer tool1 copy per Candidate
⬇ PDFAssessor Guide
Items to be EvaluatedMarks AvailableMarks ObtainedComments
TASK 1: Demonstrate process state transitions
Observed laboratory rules and used PPE where applicable
(Award 2 marks for compliance with lab safety and rules)
2
Launched Task Manager and identified process states (Ready, Running, Waiting)
(Award 1 mark each for correctly identifying Ready, Running, Waiting and explaining briefly)
4
Used Command Prompt to start a new process and observed its state transition to Running
(Award 4 marks for correctly starting a process and explaining transition to Running)
4
Used Process Explorer to suspend and resume a process demonstrating Suspend and Resume transitions
(Award 3 marks for suspending a process and 3 marks for resuming it)
6
Observed and documented the Exit transition by terminating a process and showing it is Complete
(Award 4 marks for correctly terminating a process and demonstrating Exit transition)
4
Sub-Total20
PRODUCT CHECKLIST
Correct screenshots or printouts showing process states and transitions: Ready, Waiting, Running, Suspended, Resumed, and Complete
(Award up to 10 marks for clear, correctly labeled screenshots demonstrating all required states and transitions)
10
Sub-Total10
GRAND TOTAL30
ASSESSMENT OUTCOME:   ☐ Competent    ☐ Not Yet Competent (competent if at least 50%)
🔒

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

Create a free account
🔒Explain and list key functions of the process manager in an operating systemPractical 3
🔒List and Categorize Computer Resources Managed by the Operating SystemPractical 4
🔒Observe and Interpret CPU Queue Using Task ManagerPractical 5
🔒Stop Intensive Processes Using Task ManagerPractical 6
🔒Analyze process performance using Windows Performance MonitorPractical 7
🔒Explain and Illustrate Process Scheduling Concepts in Operating SystemsPractical 8
🔒Describe features of CPU scheduling algorithmsPractical 9
🔒Identification and Explanation of Types of Schedulers in Operating SystemsPractical 10
🔒Implement First-Come-First-Served Scheduling Algorithm on Sample ProcessesPractical 11
🔒Implement Round Robin Scheduling Algorithm with Time QuantumPractical 12
🔒Implement Shortest Job First Scheduling AlgorithmPractical 13
🔒Implement Priority Scheduling Algorithm for Given ProcessesPractical 14
🔒Compare performance of FCFS, SJF, and Round Robin scheduling algorithmsPractical 15
Flashcards 20 cards Study deck ▾
Question
1

↻ Tap card to reveal answer
🔒

18 more in this section.

Create a free account
Test Yourself 19 questions Start quiz ▾
0%
0 / 2
🔒

17 more in this section.

Create a free account
Am I competent?

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

  • Monitor computer resources effectively to keep the system running smoothly.
  • Track process states and transitions accurately to maintain optimal system performance.
  • Apply process scheduling correctly to manage running tasks efficiently.
  • Use Task Manager confidently and effectively according to work requirements.
  • Utilize the performance monitor tool accurately to assess system performance during 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.