Docsity

Os process management notes, Summaries of Operating Systems

Toggle sidebar
bg1
OS PROCESS
Operating System Process – Exam Notes
1. Definition of Process
A process is a program that is currently being executed. A program stored on a hard disk is passive, but
when it is loaded into main memory and starts running, it becomes a process. For example, when Microsoft
Word or a web browser is opened, the corresponding program runs as a process.
2. Resources Required by a Process
• CPU time
• Main memory (RAM)
• Input/Output devices
• Files and other system resources
3. Process States
New → Ready → Running → Waiting/Blocked → Ready → Terminated
New: The process is being created.
Ready: The process is waiting to be assigned the CPU.
Running: The CPU is executing the process.
Waiting/Blocked: The process is waiting for an I/O operation or another event.
Terminated: The process has completed its execution or has been stopped.
4. Process Control Block (PCB)
The Operating System maintains important information about each process in a data structure called the
Process Control Block (PCB).
• Process ID (PID)
• Process state
• Program counter
• CPU registers
• CPU scheduling information
• Memory-management information
• I/O status information
5. Process Scheduling
When several processes are ready to execute, the Operating System decides which process should receive
the CPU. This activity is called process scheduling.
• FCFS (First Come First Serve): Processes are executed in the order in which they arrive.
pf2

Partial preview of the text

Download Os process management notes and more Summaries Operating Systems in PDF only on Docsity!

OS PROCESS

Operating System Process – Exam Notes

1. Definition of Process

A process is a program that is currently being executed. A program stored on a hard disk is passive, but when it is loaded into main memory and starts running, it becomes a process. For example, when Microsoft Word or a web browser is opened, the corresponding program runs as a process.

2. Resources Required by a Process

  • CPU time
  • Main memory (RAM)
  • Input/Output devices
  • Files and other system resources

3. Process States

New → Ready → Running → Waiting/Blocked → Ready → Terminated

New: The process is being created.

Ready: The process is waiting to be assigned the CPU.

Running: The CPU is executing the process.

Waiting/Blocked: The process is waiting for an I/O operation or another event.

Terminated: The process has completed its execution or has been stopped.

4. Process Control Block (PCB)

The Operating System maintains important information about each process in a data structure called the Process Control Block (PCB).

  • Process ID (PID)
  • Process state
  • Program counter
  • CPU registers
  • CPU scheduling information
  • Memory-management information
  • I/O status information

5. Process Scheduling

When several processes are ready to execute, the Operating System decides which process should receive the CPU. This activity is called process scheduling.

  • FCFS (First Come First Serve): Processes are executed in the order in which they arrive.
  • SJF (Shortest Job First): The process with the shortest CPU burst is selected first.
  • Round Robin: Each process receives a fixed time slice called a time quantum.
  • Priority Scheduling: Processes are selected according to their priority.

6. Context Switching

Context switching occurs when the CPU changes from one process to another. The OS saves the current process's state and loads the saved state of the next process. It enables multitasking, although switching itself adds some overhead.

7. Simple Example

Suppose a user is running Chrome, MS Word, and a music player at the same time. The OS manages these processes and allocates CPU time and memory among them. This makes it possible to use multiple applications seemingly at the same time.

8. Importance of Process Management

  • Improves CPU utilization
  • Supports multitasking
  • Allocates system resources efficiently
  • Controls process execution
  • Provides scheduling and synchronization
  • Helps maintain system performance and stability

Conclusion

A process is a program in execution. Process management is a major function of an Operating System. The OS creates, schedules, controls, and terminates processes while allocating the required resources. Effective process management helps achieve efficient CPU utilization and smooth multitasking.