Process management/scheduling

3.1 Explain the purpose of operating systems.

📘CompTIA ITF+ (FC0-U61)


What is a Process?

  • A process is a program that is currently running on a computer.
  • Each process has its own memory space, program counter, and resources.
  • Examples in IT environments:
    • Running Microsoft Word to edit a document.
    • A web server process handling requests.
    • A backup software process scanning files at night.

Purpose of Process Management

The operating system (OS) manages all running processes to make sure:

  1. Each process gets enough CPU time to run efficiently.
  2. Multiple processes can run at the same time without crashing the system.
  3. Resources (like memory, disk, and network) are shared fairly between processes.
  4. Processes that are not responding or using too many resources can be stopped safely.

What is Process Scheduling?

  • The OS cannot run all processes at the exact same time if there is only one CPU.
  • Scheduling decides which process runs, for how long, and in what order.
  • Types of scheduling:
    1. First-Come, First-Served (FCFS) – processes are executed in the order they arrive.
    2. Round Robin (RR) – each process gets a fixed amount of CPU time in turns.
    3. Priority Scheduling – processes with higher priority get CPU first.
  • IT example: A server may prioritize the web server process over a background file indexing process to keep websites fast.

Kill Process / End Task

Sometimes, processes stop responding or use too many resources. The OS allows administrators or users to terminate these processes.

What Does “Kill Process” Mean?

  • Killing a process means forcibly stopping it immediately.
  • This frees up CPU and memory for other processes.
  • It’s usually done for processes that are not responding or hanging.

How to Kill a Process

  1. Windows:
    • Open Task Manager (Ctrl + Shift + Esc)
    • Find the process (like notepad.exe or chrome.exe)
    • Click End Task
  2. Linux / Unix:
    • Use the ps command to list processes.
    • Use kill <PID> to terminate the process.
    • kill -9 <PID> can forcefully kill a stubborn process.
  3. MacOS:
    • Use Activity Monitor or kill in Terminal.

Effects of Killing a Process

  • The program stops immediately.
  • Unsaved data may be lost.
  • System resources are freed for other processes.
  • IT example: On a server, killing a stuck database process can prevent the server from crashing and allow other users to continue working.

Why This Matters for the Exam

  • You must know:
    • What a process is.
    • How an OS manages multiple processes.
    • What process scheduling is and why it’s important.
    • How to kill a process when it’s not responding.

Exam Tip:
Questions may ask you to:

  • Identify the purpose of process management.
  • Explain what happens when a process is killed.
  • Choose the correct method to terminate a process in a given OS.

Key Terms to Remember

TermMeaning
ProcessA running program on a computer
Process ManagementOS handling all running processes efficiently
SchedulingDeciding which process gets CPU time and when
Kill Process / End TaskForcibly stopping a non-responsive process
Buy Me a Coffee