Unit 1 Unit 2 Unit 3 Unit 4 Unit 5

Unit 1 : Overview of Operating Systems

UNIT 1: Overview of Operating System, basic concepts, UNIX/LINUX Architecture, Kernel, services and systems calls, system programs.

Basic Concepts

Operating System (OS):

Definition: An operating system (OS) is a complex software system that serves as a bridge between computer hardware and user applications. It provides a comprehensive set of services and functionalities to manage hardware resources, facilitate user interaction, and enable the execution of software programs.

Functions:

Types of Operating Systems:

An operating system plays a critical role in modern computing environments, serving as the foundation for running software applications and managing hardware resources. Its design and implementation significantly impact the performance, reliability, and security of computer systems.

UNIX/Linux Architecture

Overview:

UNIX and Linux are multiuser, multitasking operating systems. They provide a powerful and flexible environment for users.

Kernel

The kernel is the core component of an operating system (OS). It acts as a bridge between the hardware of a computer system and the software applications running on it. Essentially, the kernel provides a layer of abstraction, shielding applications from the complexities of interacting directly with hardware components.

Functions:

Types:

Monolithic Kernel:

Microkernel:

Hybrid Kernel:

Services and System Calls

System Calls:

Definition: System calls are functions provided by the operating system kernel that can be called directly by user programs or applications. These functions provide a way for user-space processes to interact with the kernel and request various operating system services.

Purpose: Purpose: The primary purpose of system calls is to enable user-level processes to perform privileged operations that require kernel-level permissions. These operations include:

1. Process Management: Creating, terminating, and managing processes.
2.File Management: Opening, reading from, writing to, and closing files.
3.Device Management: Accessing hardware devices such as disk drives, printers, and network interfaces.
4.Memory Management: Allocating and deallocating memory, mapping memory regions, and managing virtual memory.
5.Communication: Establishing communication channels between processes, such as pipes, sockets, and message queues.
6.Time Management: Setting timers, scheduling alarms, and querying the system time.
7.Security: Performing operations related to access control, authentication, and permissions.
8.Network Operations: Initiating network connections, sending and receiving data over networks.

Types of System Calls:

Process Control:

File Management:

Device Management:

Information Maintenance:

Communication:

Examples of Common System Calls in UNIX/Linux:

System Programs

Purpose:

System programs provide a convenient environment for program development and execution. They offer services to the user and system utilities for managing system resources.

Types of System Programs:

File Management:

Status Information:

File Modification:

Programming Language Support:

Program Loading and Execution:

Communications:

Background Services (Daemons):