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:
- Each process gets enough CPU time to run efficiently.
- Multiple processes can run at the same time without crashing the system.
- Resources (like memory, disk, and network) are shared fairly between processes.
- 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:
- First-Come, First-Served (FCFS) – processes are executed in the order they arrive.
- Round Robin (RR) – each process gets a fixed amount of CPU time in turns.
- 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
- Windows:
- Open Task Manager (Ctrl + Shift + Esc)
- Find the process (like
notepad.exeorchrome.exe) - Click End Task
- Linux / Unix:
- Use the
pscommand to list processes. - Use
kill <PID>to terminate the process. kill -9 <PID>can forcefully kill a stubborn process.
- Use the
- MacOS:
- Use Activity Monitor or
killin Terminal.
- Use Activity Monitor or
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
| Term | Meaning |
|---|---|
| Process | A running program on a computer |
| Process Management | OS handling all running processes efficiently |
| Scheduling | Deciding which process gets CPU time and when |
| Kill Process / End Task | Forcibly stopping a non-responsive process |
