Docsity

Booting Process and Resource Management in Operating Systems, Slides of Software Engineering

Partial preview of the text

Download Booting Process and Resource Management in Operating Systems and more Slides Software Engineering in PDF only on Docsity!

OPERATING SYSTEMS

(CS-325) BE 6TH^ SEMESTER

BY ENGR. ABDUL BASIT

LECTURER CSE& S DEPARTMENT BUETK

How an operating system takes control? ■When we switch on our computer system certain logical steps take place after this computer loads the operating system and passes the control to it. This process is known as booting.

Power on self test (POST): ■ (^) Booting process begins with power on self-test (POST). In this step, computer checks itself to see if the basic devices (viz, keyboard, mouse, display etc.) are connected with the processor. ■ (^) For this it sends predefined signals to these devices and expects pre-define responses back from these devices.

BIOS Routine:

■Basic Input Output System (BIOS),

which is part of the computer’s

Read Only Memory (ROM) perform

checking the memory of the

system.

Configuration files loading:

■Once these files are loaded, few more

configuration files are also required which

contain what to do upon the startup of the

computer.

■After fourth stage, booting process is

completed and now operating system takes

control of the computer system.

RESOURCE

MANAGEMENT

& OS

FUNCTIONS

Functions of an Operating System:

■Memory Management Function

■Process Management Function

■Disk Management Function

■File Management Function

Memory Management Function: ■ (^) Primary memory: (Main Memory) ■ (^) Provide direct access storage for CPU. ■ (^) Processes must be in main memory to execute.

Mechanism: ■ (^) Keep track of memory in used. ■ (^) Keep track of unused (free) memory. ■ (^) Protect memory space. ■ (^) Allocate, deallocate space for processes. ■ (^) Swap processes: Memory-Disk

Process Management Function: Operating system manages many kind of activities.  (^) User programs  (^) System programs ■ (^) Each is encapsulated in a process. ■ (^) A process includes the complete execution context (code, data, PC registers, OS resources in use etc.).

Disk Management Function: ■ (^) The actual hardware that sits underneath the file system. ■ (^) Large enough to store all user programs and data, application programs, entire OS. ■ (^) Persistent: recover from system failure. ■ (^) Manage disk space at low level.

■ (^) Keep track of used space. ■ (^) Keep track of unused (free) spaces. ■ (^) Keep track of bad sectors. ■ (^) Handle low level disk functions such as: ■ (^) Scheduling of disk operations

Operating system must: ■ (^) Create and delete files and directories ■ Manipulate files and directories ■ (^) Read, write, extend, resume, copy, protect ■ (^) Provide general higher-level services ■ (^) Backup, accounting, quotas