Docsity

Operating Systems: An Introduction to Core Concepts, Lecture notes of Operating Systems

Partial preview of the text

Download Operating Systems: An Introduction to Core Concepts and more Lecture notes Operating Systems in PDF only on Docsity!

OPRTATING

SYSTEM

List of Topics

Introduction to Operating System

Process Management

Inter Process Communication

Deadlock

Memory Management

I/O Management

File System

System Protection

Unix/Linux File system

Case Study on XV6 Operating System

What is Operating System

Operating System (or shortly OS) primarily provides services for

running applications on a computer system.

A Program that acts as an intermediary between a user of a computer

and computer hardware.

Goals of OS:-

Execute user programs and makes solving user problems easier.

Makes the computer system convenient to use.

Use the computer hardware in an efficient manner.

Need of Operating System

The central part of a computer system is a processing engine called

CPU. A system should make it possible for a user’s application to use

the processing unit.

A user application would need to store information. The OS makes

memory available to an application when required.

Similarly, user applications need use of input facility to communicate

with the application.

This is often in the form of a key board, or a mouse or even a joy stick

(if the application is a game for instance).

Each of the above application requires

resources

Processing information

Storage of Information

Mechanism to inputting information

Provision for outputting information

Note :- The OS offers generic services to support all the above

operations. To that extent an OS operation is application neutral and

service specific.

User and System View

Functions of an Operating System

Memory Management:

The OS manages the computer’s RAM (Random Access Memory).

It decides which programs are allowed to use memory.

It keeps track of used and free memory.

It frees memory when it's no longer needed.

Example: When you open a browser and MS Word, the OS gives them both

memory space to work.

Functions of an Operating System

Process Management:

A process is a program that is running. The OS controls all running

processes.

Starts and stops programs (processes)

Shares time between different processes

Handles multitasking (running many apps at once)

Example: You’re listening to music while typing a document — the OS

manages both tasks.

Functions of an Operating System

File Management:

The OS handles all data storage — files and folders.

Lets you create, open, save, copy, delete, and rename files

Organizes files into folders/directories

Example: Windows File Explorer helps you manage files on your hard

drive.

Functions of an Operating System

Security:

The OS keeps your system safe from unauthorized access and threats.

How?

  • Uses passwords , permissions , and antivirus tools
  • Protects files and system resources from harmful software

Example: You need a password to log in, or the OS blocks unknown apps from

installing.

Functions of an Operating System

Error Detecting:

The OS finds and fixes errors that may occur during use.

Detects problems like missing files , device errors , or program crashes

Logs the error or shows a message

Example: “Blue screen” in Windows shows a system error the OS couldn’t

handle.

Functions of an Operating System

Coordination between other software and users:

The OS makes sure software, hardware, and users work together

smoothly.

Provides a user interface (menus, icons, etc.)

Helps apps interact with devices

Manages input/output between apps and users

Example: When you click a song in your music app, the OS plays it

through your speakers.

Batch operating system

This type of operating system do not interact with the computer

directly.

There is an operator which takes similar jobs having same

requirement and group them into batches.

It is the responsibility of operator to sort the jobs with similar needs.

Time-Sharing Operating Systems

Each task has given some time to execute, so that all the tasks work

smoothly.

These systems are also known as Multitasking Systems.

The task can be from single user or from different users also.