Intro-to-OS NAMASTE
Intro-to-OS NAMASTE
Intelligence
● Introduction
● Terminology
● Components of OS
● Services offered by OS
● Types of OS
● Examples of OS
5
Introduction
Introduction
● Most computer users have had some experience with an operating system, but it
is difficult to pin down precisely what an operating system.
● It is an integrated set of programs that directs and manages the components and
resources of a computer system, including main memory, the CPU and the
peripheral devices.
8
Introduction
9
Introduction
● The hardware provides raw computing power, and the operating system makes
this power conveniently accessible to the user. This unit presses what operating
system do and basics of OS.
● It minimizes the computer user's intervention in (and concern) about machine's internal
workings.
● It controls and co-ordinates the use of hardware among the various application programs.
● It acts as a managers of resources (hardware and software) and allocates them to specific
programs.
12
Terminology
Terminology
● It is important to acquaint with various terms used when discussing about operating
system. These are
● Operating System: This refers to the software and files that are installed on a system so
that it can boot and execute programs. It includes the kernel, administration tools, and
system libraries
● Kernel: The kernel is the program that manages the system, including devices
(hardware), memory, and CPU scheduling. It runs in a privileged CPU mode that allows
direct access to hardware, called kernel mode.
● Threads: An executable context that can be scheduled to run on a CPU. The kernel
has multiple threads, and a process contains one or more.
● Task: A Linux runnable entity, which can refer to a process (with a single thread), a
thread from a multithreaded process, or kernel threads
16
Terminology
● System call: A well-defined protocol for user programs to request the kernel to
perform privileged operations, including device I/O.
17
Components of OS
Components
● Kernel: The core of the operating system that manages the hardware
resources. Responsible for process management, memory management, device
management, and system calls.
● File system: Manages the organization, storage, retrieval, naming, sharing, and
protection of files on a disk. Provides a hierarchical directory structure.
20
Components
● Device Drivers: Interfaces with hardware devices, allowing the OS to communicate with
peripherals such as printers, keyboards, and storage devices. Each device typically has
its own driver.
● User Interface (UI): Provides a way for users to interact with the computer. Can be a
command-line interface (CLI) or a graphical user interface (GUI).
● Security Access & Control: Enforces access control policies to ensure that only
authorized users and processes can access certain resources. Includes user
authentication, encryption, and other security features.
● System Calls: Interfaces for applications to request services from the operating
system. Examples include file operations, process creation, and communication.
● Shell: The command interpreter that allows users to interact with the operating system
through a command-line interface. Executes commands and scripts.
● Utilities: System utilities perform various tasks such as disk formatting, backup, and system
monitoring. Examples include text editors, file managers, and disk management tools
● Scheduler: Manages the scheduling of processes, determining which process gets access to
the CPU and for how long
● Interrupt Handlers: Manages hardware and software interrupts, allowing the OS to respond
to events such as hardware errors or I/O completion
22
Services offered by OS
Services offered by OS
● Program Execution: The OS loads programs into memory and manages their
execution, ensuring that the CPU executes instructions in a controlled manner.
● I/O Operations: Manages input and output operations, allowing programs to read
from and write to devices such as disks, keyboards, and printers
● File System Manipulation: Provides services for creating, deleting, reading and
writing files. Manages file attributes and directory structures.
25
Services offered by OS
● Error Detection and Handling: Monitors the system for errors and
responds appropriately, preventing system crashes and providing error messages to
users and applications.
26
Services offered by OS
● User Interface Services: Provides a user interface that allows users to interact with
the computer, including command-line interfaces (CLI) and graphical
user interfaces (GUI).
28
Hardware Elements & OS
Hardware Elements & OS
● Central Processing Unit (CPU): The CPU is the primary processing unit of
a computer. The OS interacts with the CPU to schedule tasks, allocate
resources, and manage the execution of programs.
● Memory (RAM and Cache): The OS manages system memory, including RAM
(Random Access Memory) and cache memory. It allocates memory space to
running processes, facilitates data exchange between RAM and storage, and
handles memory paging and swapping.
31
Hardware Elements & OS
● Storage Devices: Operating systems interact with various storage devices, such as
hard drives, solid-state drives (SSDs), and external storage. They manage file
systems, handle input/output operations, and ensure data storage and retrieval.
32
Hardware Elements & OS
● Motherboard and System Bus: The OS interacts with the motherboard and the
system bus to facilitate communication between various hardware components. It
manages data transfer and control signals between the CPU, memory, and
peripheral devices.
● Clock and Timer: The operating system interacts with the system clock and
timers to manage time-related functions, including scheduling tasks, handling
timeouts, and maintaining system time.
33
Hardware Elements & OS
● Graphics Processing Unit (GPU): For systems with a separate GPU, the
operating system interacts with the graphics hardware to render graphics,
manage display settings, and support graphical user interfaces.
34
Types of OS
Types of OS
● Operating systems can be classified into various types based on different criteria.
Here are some common classifications
● Single-User OS: Designed to support a single user at a time. Examples include most
personal computer operating systems like Windows, macOS, and Linux distributions
for desktop use.
● Single-Tasking OS: Allows only one task or process to run at a time. Older operating
systems like MS-DOS are examples.
37
Types of OS
● Multi-Processor OS: Optimized for systems with multiple CPUs or cores, allowing
parallel processing.
● Batch Processing OS: Processes a set of tasks in batches, without user interaction.
Mainframes often use batch processing.
38
Types of OS
● Open-Source OS: The source code is available for users to view, modify,
and distribute. Examples include Linux distributions (Ubuntu, Fedora) and
FreeBSD.
● Proprietary OS: Source code is not available, and the software is owned by
a company. Examples include Microsoft Windows and macOS.
39
Types of OS
● Mobile OS: Optimized for mobile devices such as smartphones and tablets. Examples
include Android, iOS, and Windows Mobile.
● Time-Sharing OS: Supports multiple users simultaneously by dividing CPU time among
them. Examples include Unix and its derivatives.
40
Examples of OS
Examples of OS
● Server OS:
○ Linux Server Distributions: Such as Ubuntu Server, CentOS, Red Hat Enterprise Linux
(RHEL).
○ Microsoft Windows Server: Versions include Windows Server 2019, Windows Server 2016.
43
Examples of OS
● Embedded OS:
○ VxWorks: Commonly used in embedded systems, real-time applications.
○ FreeRTOS: An open-source real-time operating system for embedded systems.
○ Embedded Linux: Customized Linux distributions tailored for embedded devices.
● Real-Time OS (RTOS):
● QNX: Used in embedded systems, automotive applications, and more.
○ RTOS in Industrial Automation: Examples include VxWorks, FreeRTOS, and RTLinux.
44
Examples of OS
45
Desktop OS Vs Server OS
Desktop OS Vs Server OS
● User Interface:
○ Personal OS: Typically includes a graphical user interface (GUI) designed for individual
users. Examples include Windows, macOS, and various Linux desktop environments.
○ Server OS: Often operates without a graphical user interface, especially in server
deployments. Server OS is configured and managed remotely using command-
line interfaces or web-based management tools.
48
Desktop OS Vs Server OS - User Interaction
49
Desktop OS Vs Server OS - Hardware resource allocation
50
Desktop OS Vs Server OS - Services and applications
51
Desktop OS Vs Server OS - Concurrency & Multi-User Support
52
Desktop OS Vs Server OS – Security & access control
53
Desktop OS Vs Server OS - Resource Scaling
54
Desktop OS Vs Server OS – Redundancy & reliability
55
Mainframe OS
Mainframe OS
● Mainframes are powerful computers that are capable of handling a vast amount of data,
supporting a large number of simultaneous users, and running critical business applications.
● Concurrency and Multi-User Support: Optimized for concurrent execution of numerous tasks
and supports a large number of simultaneous users. It can efficiently handle multiple and
diverse workloads.
58
Mainframe OS
● Cost and Licensing: Typically involves high upfront costs but can be cost-effective for
large organizations with substantial computing needs.
59
Thank You!