SlideShare a Scribd company logo
1
Purpose:
Unix Operating System Overview
& Internals
2
Operating System
Purpose:
The high-level architecture of the UNIX System
shown here.
 The hardware at the center of the diagram
provides the operating system with basic
services.
 The operating system interacts directly with
the hardware, providing common services
to programs
 The operating system is commonly called as
system kernel or kernel , emphasizing its
isolation from user programs
 The user programs are independent of the
underlying hardware, its easy to move the
user programs between different hardware
if the programs doesn’t assumptions about
the underlying hardware
.
3
Multi Processing OS
 Multiprocessor Operating System refers to the use of two or more central processing units
(CPU) within a single computer system. These multiple CPUs are in a close communication
sharing the computer bus, memory and other peripheral devices. These systems are referred as
tightly coupled systems.
 They are two different types, applied for various environments (a). Symmetric (b). Asymmetric
 Symmetric multiprocessing (SMP) involves a symmetric multiprocessor system hardware and
software architecture where two or more identical processors connect to a single, shared main
memory, have full access to all I/O devices, and are controlled by a single operating system
instance that treats all processors equally, reserving none for special purposes. Most
multiprocessor systems today use an SMP architecture.
.
4
Multi Processing OS Continued ..
 In an asymmetric multiprocessing system, not all CPUs are treated equally; for example, a
system might only allow (either at the hardware or operating system level) one CPU to execute
operating system code or might only allow one CPU to perform I/O operations
 Nowadays many operating systems supports SMP for scalable , better performance and
throughput
.
5
Multi Core Processor
 A CPU, or Central Processing Unit, is what is typically referred to as a processor. A processor
contains many discrete parts within it, such as one or more memory caches for instructions and
data, instruction decoders, and various types of execution units for performing arithmetic or
logical operations.
 A multiprocessor system contains more than one such CPU, allowing them to work in parallel.
This is called SMP, or Simultaneous Multiprocessing.
 A multi*core* CPU has multiple execution cores on one CPU. Now, this can mean different
things depending on the exact architecture, but it basically means that a certain subset of the
CPU's components is duplicated, so that multiple "cores" can work in parallel on separate
operations. This is called CMP, Chip-level Multiprocessing.
 For example, a multicore processor may have a separate L1 cache and execution unit for each
core, while it has a shared L2 cache for the entire processor. That means that while the
processor has one big pool of slower cache, it has separate fast memory and arithmetic/logic
units for each of several cores. This would allow each core to perform operations at the same
time as the others.
 There is an even further division, called SMT, Simultaneous Multithreading. This is where an
even smaller subset of a processor's or core's component's is duplicated. For example, an SMT
core might have duplicate thread scheduling resources, so that the core looks like two separate
"processors" to the operating system, even though it only has one set of execution units. One
common implementation of this is Intel's Hyper-threading.
6
Multi Core vs Multi Processor
 Thus, you could have a multiprocessor, multicore, multithreaded system. Something like two
quad-core (4 cpus), hyper-threaded processors would give you 2x4x2 = 16 logical processors
from the point of view of the operating system.
 Different workloads benefit from different setups. A single threaded workload being done on a
mostly single-purpose machine benefits from a very fast, single-core/cpu system.
 In general, hardware these days is trending more and more toward highly parallel architectures,
as most single CPU/core raw speeds are "fast enough" for common workloads across most
models.
 CPUs have a clock speed – think of it as how fast the CPU does work. Means based each
instruction will be executed based on the clock speed of the system
 For example, Intel’s Core i5-3330 processor has a clock speed of 3 GHz and is a quad-core
processor, which means it has four cores. All four cores in this Intel i5 processor are each
running at 3 GHz.
 Another way 1 Core = 1 execution / 1 clock cycle
 (i.e) for 16 Core processor can execute 16 programs parallel
7
Multi Core vs Multi Processor Continued…
 Thus, you could have a multiprocessor, multicore, multithreaded system. Something like two
quad-core (4 cpus), hyper-threaded processors would give you 2x4x2 = 16 logical processors
from the point of view of the operating system.
 Different workloads benefit from different setups. A single threaded workload being done on a
mostly single-purpose machine benefits from a very fast, single-core/cpu system.
 In general, hardware these days is trending more and more toward highly parallel architectures,
as most single CPU/core raw speeds are "fast enough" for common workloads across most
models.
 CPUs have a clock speed – think of it as how fast the CPU does work. Means based each
instruction will be executed based on the clock speed of the system
 For example, Intel’s Core i5-3330 processor has a clock speed of 3 GHz and is a quad-core
processor, which means it has four cores. All four cores in this Intel i5 processor are each
running at 3 GHz.
 Another way 1 Core = 1 execution / 1 clock cycle
 (i.e) for 16 Core processor can execute 16 programs parallel
8
Operating System Services
 Process Management; Controlling the execution of process by allowing their creation,
termination or suspension and communication
 Scheduler; Scheduling process fairly for execution on the CPU. Processes share the CPU in
time-shared manner; CPU executes a process, kernel suspends it when time quantum elapses,
and kernel schedules another process to execute. The kernel reschedules the suspended
process
 Memory Management
 IO Management
 Different interrupt and its priorities
9
Sample Process Output
[sankar@localhost Cprogs]$ vi process.c
#include <stdio.h>
int main()
{
while(1) {
printf("Jataayu Research & Development Centre Welcomes You..!!n");
}
return 0;
}
[sankar@localhost Cprogs]$ gcc process.c
[sankar@localhost Cprogs]$ ./a.out
Jataayu Research & Development Centre Welcomes You..!!
Jataayu Research & Development Centre Welcomes You..!!
Jataayu Research & Development Centre Welcomes You..!!
Login to root user :
[root@localhost ~]# cd /proc
[root@localhost proc]# ps -aef | grep a.out
sankar 2040 1870 1 11:40 pts/0 00:00:00 ./a.out
root 2043 2000 0 11:40 pts/1 00:00:00 grep a.out
[root@localhost proc]# ls 2040/
attr clear_refs cpuset exe io maps mounts oom_adj personality schedstat stack status wchan
auxv cmdline cwd fd limits mem mountstats oom_score root sessionid stat syscall
cgroup coredump_filter environ fdinfo loginuid mountinfo net pagemap sched smaps statm task
[root@localhost proc]#
10
Architecture of Unix OS
 High level block diagram of kernel
shown here
 Represented by three levels
1) User
2) Kernel
3) Hardware
 Sub-systems
1) Process Subsystem
2) File subsystem
3) Memory Management
4) Scheduler
5) IO Module (typically hardware)
11
File Subsystem
 High level block diagram of kernel
shown here
 Represented by three levels
1) User
2) Kernel
3) Hardware
 Sub-systems
1) Process Subsystem
2) File subsystem
3) Memory Management
4) Scheduler
5) IO Module (typically hardware)

More Related Content

PPT
Unix Internals OS Architecture
PPTX
Unix operating system
PDF
Linux kernel architecture
PDF
Linux kernel architecture
PPTX
Unix Operating System
PPT
Unix lecture1
PDF
ODP
Linux Internals - Kernel/Core
Unix Internals OS Architecture
Unix operating system
Linux kernel architecture
Linux kernel architecture
Unix Operating System
Unix lecture1
Linux Internals - Kernel/Core

What's hot (20)

PPTX
Introduction to Unix
PPTX
Unix and shell programming | Unix File System | Unix File Permission | Blocks
PPT
Unit 1-a-brief-history-of-unix-ppt
PPTX
A beginners introduction to unix
PDF
Linux advanced concepts - Part 1
PPT
Kernal
PDF
Part 02 Linux Kernel Module Programming
PPTX
Chapter 1: Introduction to Unix / Linux Kernel
PPT
Kernel mode vs user mode in linux
PPTX
Introduction to Linux Kernel
PPT
Linux architecture
PDF
Processes in unix
PPTX
Linux Memory Management
PPTX
Linux architecture
PPT
PPTX
Unix seminar
PPT
Kernel module programming
PDF
Part 01 Linux Kernel Compilation (Ubuntu)
PPTX
Linux kernel
ODP
Linux internal
Introduction to Unix
Unix and shell programming | Unix File System | Unix File Permission | Blocks
Unit 1-a-brief-history-of-unix-ppt
A beginners introduction to unix
Linux advanced concepts - Part 1
Kernal
Part 02 Linux Kernel Module Programming
Chapter 1: Introduction to Unix / Linux Kernel
Kernel mode vs user mode in linux
Introduction to Linux Kernel
Linux architecture
Processes in unix
Linux Memory Management
Linux architecture
Unix seminar
Kernel module programming
Part 01 Linux Kernel Compilation (Ubuntu)
Linux kernel
Linux internal
Ad

Similar to Unix operating system basics (20)

PPT
Multiprocessor_YChen.ppt
PDF
Operating System
PPT
parallel-processing.ppt
PPT
18 parallel processing
PPT
PPTX
CSE3120- Module1 part 1 v1.pptx
PPT
EMBEDDED OS
PDF
CS9222 ADVANCED OPERATING SYSTEMS
PDF
operating system S6 ktu physics and computer application
PPT
Parallel processing
PPT
Module2 MultiThreads.ppt
PPTX
CS345 09 - Ch04 Threads operating system1.pptx
PPTX
Processes and operating systems
PPTX
Operating system.pptx
PPT
Introduction to symmetric multiprocessor
PPT
Module 1 Introduction.ppt
PPT
Parallel processing
PPT
Parallel processing Concepts
PDF
Real time operating systems
PDF
Operating System Overview.pdf
Multiprocessor_YChen.ppt
Operating System
parallel-processing.ppt
18 parallel processing
CSE3120- Module1 part 1 v1.pptx
EMBEDDED OS
CS9222 ADVANCED OPERATING SYSTEMS
operating system S6 ktu physics and computer application
Parallel processing
Module2 MultiThreads.ppt
CS345 09 - Ch04 Threads operating system1.pptx
Processes and operating systems
Operating system.pptx
Introduction to symmetric multiprocessor
Module 1 Introduction.ppt
Parallel processing
Parallel processing Concepts
Real time operating systems
Operating System Overview.pdf
Ad

Recently uploaded (20)

PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
Machine learning based COVID-19 study performance prediction
PDF
cuic standard and advanced reporting.pdf
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPTX
Big Data Technologies - Introduction.pptx
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
KodekX | Application Modernization Development
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
NewMind AI Weekly Chronicles - August'25 Week I
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Machine learning based COVID-19 study performance prediction
cuic standard and advanced reporting.pdf
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Digital-Transformation-Roadmap-for-Companies.pptx
Review of recent advances in non-invasive hemoglobin estimation
Spectral efficient network and resource selection model in 5G networks
The Rise and Fall of 3GPP – Time for a Sabbatical?
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Big Data Technologies - Introduction.pptx
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Chapter 3 Spatial Domain Image Processing.pdf
Building Integrated photovoltaic BIPV_UPV.pdf
KodekX | Application Modernization Development
Mobile App Security Testing_ A Comprehensive Guide.pdf
20250228 LYD VKU AI Blended-Learning.pptx
NewMind AI Weekly Chronicles - August'25 Week I

Unix operating system basics

  • 1. 1 Purpose: Unix Operating System Overview & Internals
  • 2. 2 Operating System Purpose: The high-level architecture of the UNIX System shown here.  The hardware at the center of the diagram provides the operating system with basic services.  The operating system interacts directly with the hardware, providing common services to programs  The operating system is commonly called as system kernel or kernel , emphasizing its isolation from user programs  The user programs are independent of the underlying hardware, its easy to move the user programs between different hardware if the programs doesn’t assumptions about the underlying hardware .
  • 3. 3 Multi Processing OS  Multiprocessor Operating System refers to the use of two or more central processing units (CPU) within a single computer system. These multiple CPUs are in a close communication sharing the computer bus, memory and other peripheral devices. These systems are referred as tightly coupled systems.  They are two different types, applied for various environments (a). Symmetric (b). Asymmetric  Symmetric multiprocessing (SMP) involves a symmetric multiprocessor system hardware and software architecture where two or more identical processors connect to a single, shared main memory, have full access to all I/O devices, and are controlled by a single operating system instance that treats all processors equally, reserving none for special purposes. Most multiprocessor systems today use an SMP architecture. .
  • 4. 4 Multi Processing OS Continued ..  In an asymmetric multiprocessing system, not all CPUs are treated equally; for example, a system might only allow (either at the hardware or operating system level) one CPU to execute operating system code or might only allow one CPU to perform I/O operations  Nowadays many operating systems supports SMP for scalable , better performance and throughput .
  • 5. 5 Multi Core Processor  A CPU, or Central Processing Unit, is what is typically referred to as a processor. A processor contains many discrete parts within it, such as one or more memory caches for instructions and data, instruction decoders, and various types of execution units for performing arithmetic or logical operations.  A multiprocessor system contains more than one such CPU, allowing them to work in parallel. This is called SMP, or Simultaneous Multiprocessing.  A multi*core* CPU has multiple execution cores on one CPU. Now, this can mean different things depending on the exact architecture, but it basically means that a certain subset of the CPU's components is duplicated, so that multiple "cores" can work in parallel on separate operations. This is called CMP, Chip-level Multiprocessing.  For example, a multicore processor may have a separate L1 cache and execution unit for each core, while it has a shared L2 cache for the entire processor. That means that while the processor has one big pool of slower cache, it has separate fast memory and arithmetic/logic units for each of several cores. This would allow each core to perform operations at the same time as the others.  There is an even further division, called SMT, Simultaneous Multithreading. This is where an even smaller subset of a processor's or core's component's is duplicated. For example, an SMT core might have duplicate thread scheduling resources, so that the core looks like two separate "processors" to the operating system, even though it only has one set of execution units. One common implementation of this is Intel's Hyper-threading.
  • 6. 6 Multi Core vs Multi Processor  Thus, you could have a multiprocessor, multicore, multithreaded system. Something like two quad-core (4 cpus), hyper-threaded processors would give you 2x4x2 = 16 logical processors from the point of view of the operating system.  Different workloads benefit from different setups. A single threaded workload being done on a mostly single-purpose machine benefits from a very fast, single-core/cpu system.  In general, hardware these days is trending more and more toward highly parallel architectures, as most single CPU/core raw speeds are "fast enough" for common workloads across most models.  CPUs have a clock speed – think of it as how fast the CPU does work. Means based each instruction will be executed based on the clock speed of the system  For example, Intel’s Core i5-3330 processor has a clock speed of 3 GHz and is a quad-core processor, which means it has four cores. All four cores in this Intel i5 processor are each running at 3 GHz.  Another way 1 Core = 1 execution / 1 clock cycle  (i.e) for 16 Core processor can execute 16 programs parallel
  • 7. 7 Multi Core vs Multi Processor Continued…  Thus, you could have a multiprocessor, multicore, multithreaded system. Something like two quad-core (4 cpus), hyper-threaded processors would give you 2x4x2 = 16 logical processors from the point of view of the operating system.  Different workloads benefit from different setups. A single threaded workload being done on a mostly single-purpose machine benefits from a very fast, single-core/cpu system.  In general, hardware these days is trending more and more toward highly parallel architectures, as most single CPU/core raw speeds are "fast enough" for common workloads across most models.  CPUs have a clock speed – think of it as how fast the CPU does work. Means based each instruction will be executed based on the clock speed of the system  For example, Intel’s Core i5-3330 processor has a clock speed of 3 GHz and is a quad-core processor, which means it has four cores. All four cores in this Intel i5 processor are each running at 3 GHz.  Another way 1 Core = 1 execution / 1 clock cycle  (i.e) for 16 Core processor can execute 16 programs parallel
  • 8. 8 Operating System Services  Process Management; Controlling the execution of process by allowing their creation, termination or suspension and communication  Scheduler; Scheduling process fairly for execution on the CPU. Processes share the CPU in time-shared manner; CPU executes a process, kernel suspends it when time quantum elapses, and kernel schedules another process to execute. The kernel reschedules the suspended process  Memory Management  IO Management  Different interrupt and its priorities
  • 9. 9 Sample Process Output [sankar@localhost Cprogs]$ vi process.c #include <stdio.h> int main() { while(1) { printf("Jataayu Research & Development Centre Welcomes You..!!n"); } return 0; } [sankar@localhost Cprogs]$ gcc process.c [sankar@localhost Cprogs]$ ./a.out Jataayu Research & Development Centre Welcomes You..!! Jataayu Research & Development Centre Welcomes You..!! Jataayu Research & Development Centre Welcomes You..!! Login to root user : [root@localhost ~]# cd /proc [root@localhost proc]# ps -aef | grep a.out sankar 2040 1870 1 11:40 pts/0 00:00:00 ./a.out root 2043 2000 0 11:40 pts/1 00:00:00 grep a.out [root@localhost proc]# ls 2040/ attr clear_refs cpuset exe io maps mounts oom_adj personality schedstat stack status wchan auxv cmdline cwd fd limits mem mountstats oom_score root sessionid stat syscall cgroup coredump_filter environ fdinfo loginuid mountinfo net pagemap sched smaps statm task [root@localhost proc]#
  • 10. 10 Architecture of Unix OS  High level block diagram of kernel shown here  Represented by three levels 1) User 2) Kernel 3) Hardware  Sub-systems 1) Process Subsystem 2) File subsystem 3) Memory Management 4) Scheduler 5) IO Module (typically hardware)
  • 11. 11 File Subsystem  High level block diagram of kernel shown here  Represented by three levels 1) User 2) Kernel 3) Hardware  Sub-systems 1) Process Subsystem 2) File subsystem 3) Memory Management 4) Scheduler 5) IO Module (typically hardware)