SlideShare a Scribd company logo
4
Most read
5
Most read
6
Most read
22CS301 - Operating Systems
22CS301 OPERATING SYSTEM
MODULE 1 -Computer Systems
22CS301 - Operating Systems
Session Topic
1.1 Need for Operating Systems -Abstract view of OS
1.2 Computer Systems
1.3 OS Operations
1.4 Virtualization
1.5 Computing Environments
1.6 OS Services
1.7 OS Structures
1.8 System Calls
1.9 Building and Booting OS
1.10 Process
1.11 Threads
1.12 Multithreading
Module 1- Introduction
MODULE 1 -Computer Systems
22CS301 - Operating Systems
1.9 Building and Booting OS
MODULE 1 -Computer Systems
Course Outcome:
Upon completion of the session, students shall have ability to
CO1 Identify the basic concepts and operations of operating systems. [U]
22CS301 - Operating Systems
Building and Booting an Operating System
• Operating systems generally designed to run on a class of systems with
variety of peripherals
• Commonly, operating system already installed on purchased computer
– But can build and install some other operating systems
– If generating an operating system from scratch
• Write the operating system source code
• Configure the operating system for the system on which it will run
• Compile the operating system
• Install the operating system
• Boot the computer and its new operating system
22CS301 - Operating Systems
• The operating system is loaded via a bootstrapping procedure, often known as
booting.
• The process of booting involves turning on a computer.
• The memory of the CPU is empty when it is first turned on.
• After loading the operating system into the main memory and turning on the
computer, it is prepared to accept user commands.
• The initial collection of tasks the computer carries out when turned on is known as
the boot sequence.
• The kernel is located, loaded into the main memory, and executed by the
bootstrap loader. In some systems, the kernel is loaded after a straightforward
bootstrap loader retrieves a more intricate boot program from the disk.
• Restarting a computer is sometimes referred to as rebooting.
MODULE 1 -Computer Systems
Booting
22CS301 - Operating Systems
Step 1: BIOS is loaded
Step 2: BIOS: Power on Self-Test
• This test runs a preliminary examination of the computer's main memory, disk
drives, input/output devices, etc. Moreover, the system emits a beep sound in
case of any errors.
Step 3: Loading of OS
• The bootable sequence stored in the CMOS is read by BIOS following the
successful completion of POST.
Step 4: System Configuration
Step 5: Loading System Utilities
• In this step, system utilities like antivirus and volume control are loaded into the
memory.
Step 6: User Authentication
MODULE 1 -Computer Systems
Steps of Booting Process in Operating System
22CS301 - Operating Systems
Building and Booting Linux
• Download Linux source code (http://www.kernel.org)
• Configure kernel via “make menuconfig”
• Compile the kernel using “make”
– Produces vmlinuz, the kernel image
– Compile kernel modules via “make modules”
– Install kernel modules into vmlinuz via “make modules_install”
– Install new kernel on the system via “make install”
22CS301 - Operating Systems
System Boot
• When power initialized on system, execution starts at a fixed memory location
• Operating system must be made available to hardware so hardware can start
it
– Small piece of code – bootstrap loader, BIOS, stored in ROM or EEPROM
locates the kernel, loads it into memory, and starts it
– Sometimes two-step process where boot block at fixed location loaded by
ROM code, which loads bootstrap loader from disk
– Modern systems replace BIOS with Unified Extensible Firmware Interface
(UEFI)
• Common bootstrap loader, GRUB, allows selection of kernel from multiple
disks, versions, kernel options
• Kernel loads and system is then running
• Boot loaders frequently allow various boot states, such as single user mode
22CS301 - Operating Systems
Operating-System Debugging
• Debugging is finding and fixing errors, or bugs
• Also performance tuning
• OS generate log files containing error information
• Failure of an application can generate core dump file capturing memory of
the process
• Operating system failure can generate crash dump file containing kernel
memory
• Beyond crashes, performance tuning can optimize system performance
– Sometimes using trace listings of activities, recorded for analysis
– Profiling is periodic sampling of instruction pointer to look for statistical
trends
Kernighan’s Law: “Debugging is twice as hard as writing the code in the first
place. Therefore, if you write the code as cleverly as possible, you are, by
definition, not smart enough to debug it.”
22CS301 - Operating Systems
Performance Tuning
• Improve performance by removing bottlenecks
• OS must provide means of computing and displaying measures of system
behavior
• For example, “top” program or Windows Task Manager
22CS301 - Operating Systems
Tracing
 Collects data for a specific event, such as steps involved in a system
call invocation
 Tools include
• strace – trace system calls invoked by a process
• gdb – source-level debugger
• perf – collection of Linux performance tools
• tcpdump – collects network packets
22CS301 - Operating Systems
BCC
 Debugging interactions between user-level and kernel code nearly impossible without
toolset that understands both and an instrument their actions
 BCC (BPF Compiler Collection) is a rich toolkit providing tracing features for Linux
• See also the original DTrace
 For example, disksnoop.py traces disk I/O activity
 Many other tools (next slide)
22CS301 - Operating Systems
Linux bcc/BPF Tracing Tools
22CS301 - Operating Systems
try
MODULE 1 -Computer Systems
The type of booting occurs where the computers hang or
reach a state of no response
22CS301 - Operating Systems
MODULE 1 -Computer Systems
Warm Booting
22CS301 - Operating Systems
MODULE 1 -Computer Systems
What type of booting “when a computer starts up for the first time or
when it is shut down, and the power button is pressed to restart the
system”.
22CS301 - Operating Systems
MODULE 1 -Computer Systems
Cold Booting

More Related Content

PPT
N5 Computing Science Structure Diagrams
PPT
Architectural Design in Software Engineering SE10
PPT
Organization and team structures
PPTX
History of Operating system
PPT
Java oops PPT
PPTX
COBOL
PPT
Cocomo model
PPT
Oracle PL/SQL exception handling
N5 Computing Science Structure Diagrams
Architectural Design in Software Engineering SE10
Organization and team structures
History of Operating system
Java oops PPT
COBOL
Cocomo model
Oracle PL/SQL exception handling

What's hot (20)

PPTX
Introduction to linux ppt
PPTX
Inheritance in C++
PPT
Case Study 1: Linux
PPTX
Software Design and Modularity
PPT
Uml class-diagram
PPTX
Unix OS & Commands
PPT
Knowledge-based Systems
PDF
Software Engineering - Ch1
PPTX
building blocks of algorithm.pptx
PPT
Sql Tutorials
PPTX
Inheritance and its types In Java
PPTX
Software Engineering Layered Technology Software Process Framework
PDF
Software engineering lecture notes
PPTX
Solaris Operating System
PPTX
Data types
PPTX
Component based development | what, why and how
PDF
01 linux corso teoria
PDF
Difference between c, c++ and java
PPTX
ASSEMBLER AND DEBUGGER.pptx lect 4 cs5.pptx
Introduction to linux ppt
Inheritance in C++
Case Study 1: Linux
Software Design and Modularity
Uml class-diagram
Unix OS & Commands
Knowledge-based Systems
Software Engineering - Ch1
building blocks of algorithm.pptx
Sql Tutorials
Inheritance and its types In Java
Software Engineering Layered Technology Software Process Framework
Software engineering lecture notes
Solaris Operating System
Data types
Component based development | what, why and how
01 linux corso teoria
Difference between c, c++ and java
ASSEMBLER AND DEBUGGER.pptx lect 4 cs5.pptx
Ad

Similar to OS Building and Booting in Fundamentals of OS (20)

PPT
OS_Intro_Chap_1.ppt
PPTX
CSC103 Operating Systems, System Software, Powershell
PPT
Systeem software and its types for beginners
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PPT
Unit I OS CS.ppt
PPT
Chapter 8 Operating Systems And Utility Programs
PPT
Functions of OS.ppt
PPTX
BIOS AND OS
PDF
CSC1100 - Chapter06 - Operating System & Utility Programs
PPT
OS-20210426203801.ppt
PPT
Windows 1Fundaments.ppt
PPT
OS-20210426203801.ppt
PPT
OS full chapter.ppt
PPT
OS-20210426203801.ppt
PPT
OS-20210426203801 introduction to os.ppt
PPT
Introduction to Oerating System By Vinod.ppt
PPT
OS-20210426203801.ppt
PDF
operating system1.pdf
PPTX
Operating System PPT for CSE students 2nd yr
PPTX
Operating systems (For CBSE School Students)
OS_Intro_Chap_1.ppt
CSC103 Operating Systems, System Software, Powershell
Systeem software and its types for beginners
Operating System & Kernel Study Guide-1 - converted.pdf
Unit I OS CS.ppt
Chapter 8 Operating Systems And Utility Programs
Functions of OS.ppt
BIOS AND OS
CSC1100 - Chapter06 - Operating System & Utility Programs
OS-20210426203801.ppt
Windows 1Fundaments.ppt
OS-20210426203801.ppt
OS full chapter.ppt
OS-20210426203801.ppt
OS-20210426203801 introduction to os.ppt
Introduction to Oerating System By Vinod.ppt
OS-20210426203801.ppt
operating system1.pdf
Operating System PPT for CSE students 2nd yr
Operating systems (For CBSE School Students)
Ad

More from Vivekananda Gn (20)

PPTX
Stream Ciphers and Block Ciphers in Security.pptx
PPTX
Introduction to Network and Information Security.pptx
PPT
Network and Information Security unit2.ppt.ppt
PPT
Network and Information Security unit 1.ppt
PPT
Sorting and Searching in Data Structures.ppt
PPT
Trees Traversals Expressions in Data structures.ppt
PPT
STACKS AND QUEUES in Data Structures.ppt
PPT
Introduction to Data structures and Trees.ppt
PPTX
Virtualization concepts in Operating systems.pptx
PPTX
Unix Commands and Shells Scripts in OS.pptx
PPTX
Security and Protection in operating systems.pptx
PPTX
Concurrency and Inter-Process communication.pptx
PPTX
Unix-Linux Operating Systems and its concepts
PPTX
Network-Administration-ITA3011 BCA VIT Vellore
PPTX
project Idea on Online food ordering system
PPT
Software Architecture and Design Details Module
PPT
memory allocation techniques in operating systems
PPT
virtual memory concepts in operating systems
PPTX
user authentication in cryptography and network security.pptx
PPTX
vector processing, pipelining - computer organization.pptx
Stream Ciphers and Block Ciphers in Security.pptx
Introduction to Network and Information Security.pptx
Network and Information Security unit2.ppt.ppt
Network and Information Security unit 1.ppt
Sorting and Searching in Data Structures.ppt
Trees Traversals Expressions in Data structures.ppt
STACKS AND QUEUES in Data Structures.ppt
Introduction to Data structures and Trees.ppt
Virtualization concepts in Operating systems.pptx
Unix Commands and Shells Scripts in OS.pptx
Security and Protection in operating systems.pptx
Concurrency and Inter-Process communication.pptx
Unix-Linux Operating Systems and its concepts
Network-Administration-ITA3011 BCA VIT Vellore
project Idea on Online food ordering system
Software Architecture and Design Details Module
memory allocation techniques in operating systems
virtual memory concepts in operating systems
user authentication in cryptography and network security.pptx
vector processing, pipelining - computer organization.pptx

Recently uploaded (20)

PDF
Digital Logic Computer Design lecture notes
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PPT
Project quality management in manufacturing
PPTX
Construction Project Organization Group 2.pptx
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PDF
PPT on Performance Review to get promotions
PDF
composite construction of structures.pdf
PPTX
Lecture Notes Electrical Wiring System Components
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
PPTX
Sustainable Sites - Green Building Construction
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PDF
R24 SURVEYING LAB MANUAL for civil enggi
PPTX
Geodesy 1.pptx...............................................
PPTX
Current and future trends in Computer Vision.pptx
PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
Digital Logic Computer Design lecture notes
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
Project quality management in manufacturing
Construction Project Organization Group 2.pptx
CYBER-CRIMES AND SECURITY A guide to understanding
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PPT on Performance Review to get promotions
composite construction of structures.pdf
Lecture Notes Electrical Wiring System Components
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
Sustainable Sites - Green Building Construction
UNIT-1 - COAL BASED THERMAL POWER PLANTS
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
R24 SURVEYING LAB MANUAL for civil enggi
Geodesy 1.pptx...............................................
Current and future trends in Computer Vision.pptx
Automation-in-Manufacturing-Chapter-Introduction.pdf
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...

OS Building and Booting in Fundamentals of OS

  • 1. 22CS301 - Operating Systems 22CS301 OPERATING SYSTEM MODULE 1 -Computer Systems
  • 2. 22CS301 - Operating Systems Session Topic 1.1 Need for Operating Systems -Abstract view of OS 1.2 Computer Systems 1.3 OS Operations 1.4 Virtualization 1.5 Computing Environments 1.6 OS Services 1.7 OS Structures 1.8 System Calls 1.9 Building and Booting OS 1.10 Process 1.11 Threads 1.12 Multithreading Module 1- Introduction MODULE 1 -Computer Systems
  • 3. 22CS301 - Operating Systems 1.9 Building and Booting OS MODULE 1 -Computer Systems Course Outcome: Upon completion of the session, students shall have ability to CO1 Identify the basic concepts and operations of operating systems. [U]
  • 4. 22CS301 - Operating Systems Building and Booting an Operating System • Operating systems generally designed to run on a class of systems with variety of peripherals • Commonly, operating system already installed on purchased computer – But can build and install some other operating systems – If generating an operating system from scratch • Write the operating system source code • Configure the operating system for the system on which it will run • Compile the operating system • Install the operating system • Boot the computer and its new operating system
  • 5. 22CS301 - Operating Systems • The operating system is loaded via a bootstrapping procedure, often known as booting. • The process of booting involves turning on a computer. • The memory of the CPU is empty when it is first turned on. • After loading the operating system into the main memory and turning on the computer, it is prepared to accept user commands. • The initial collection of tasks the computer carries out when turned on is known as the boot sequence. • The kernel is located, loaded into the main memory, and executed by the bootstrap loader. In some systems, the kernel is loaded after a straightforward bootstrap loader retrieves a more intricate boot program from the disk. • Restarting a computer is sometimes referred to as rebooting. MODULE 1 -Computer Systems Booting
  • 6. 22CS301 - Operating Systems Step 1: BIOS is loaded Step 2: BIOS: Power on Self-Test • This test runs a preliminary examination of the computer's main memory, disk drives, input/output devices, etc. Moreover, the system emits a beep sound in case of any errors. Step 3: Loading of OS • The bootable sequence stored in the CMOS is read by BIOS following the successful completion of POST. Step 4: System Configuration Step 5: Loading System Utilities • In this step, system utilities like antivirus and volume control are loaded into the memory. Step 6: User Authentication MODULE 1 -Computer Systems Steps of Booting Process in Operating System
  • 7. 22CS301 - Operating Systems Building and Booting Linux • Download Linux source code (http://www.kernel.org) • Configure kernel via “make menuconfig” • Compile the kernel using “make” – Produces vmlinuz, the kernel image – Compile kernel modules via “make modules” – Install kernel modules into vmlinuz via “make modules_install” – Install new kernel on the system via “make install”
  • 8. 22CS301 - Operating Systems System Boot • When power initialized on system, execution starts at a fixed memory location • Operating system must be made available to hardware so hardware can start it – Small piece of code – bootstrap loader, BIOS, stored in ROM or EEPROM locates the kernel, loads it into memory, and starts it – Sometimes two-step process where boot block at fixed location loaded by ROM code, which loads bootstrap loader from disk – Modern systems replace BIOS with Unified Extensible Firmware Interface (UEFI) • Common bootstrap loader, GRUB, allows selection of kernel from multiple disks, versions, kernel options • Kernel loads and system is then running • Boot loaders frequently allow various boot states, such as single user mode
  • 9. 22CS301 - Operating Systems Operating-System Debugging • Debugging is finding and fixing errors, or bugs • Also performance tuning • OS generate log files containing error information • Failure of an application can generate core dump file capturing memory of the process • Operating system failure can generate crash dump file containing kernel memory • Beyond crashes, performance tuning can optimize system performance – Sometimes using trace listings of activities, recorded for analysis – Profiling is periodic sampling of instruction pointer to look for statistical trends Kernighan’s Law: “Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.”
  • 10. 22CS301 - Operating Systems Performance Tuning • Improve performance by removing bottlenecks • OS must provide means of computing and displaying measures of system behavior • For example, “top” program or Windows Task Manager
  • 11. 22CS301 - Operating Systems Tracing  Collects data for a specific event, such as steps involved in a system call invocation  Tools include • strace – trace system calls invoked by a process • gdb – source-level debugger • perf – collection of Linux performance tools • tcpdump – collects network packets
  • 12. 22CS301 - Operating Systems BCC  Debugging interactions between user-level and kernel code nearly impossible without toolset that understands both and an instrument their actions  BCC (BPF Compiler Collection) is a rich toolkit providing tracing features for Linux • See also the original DTrace  For example, disksnoop.py traces disk I/O activity  Many other tools (next slide)
  • 13. 22CS301 - Operating Systems Linux bcc/BPF Tracing Tools
  • 14. 22CS301 - Operating Systems try MODULE 1 -Computer Systems The type of booting occurs where the computers hang or reach a state of no response
  • 15. 22CS301 - Operating Systems MODULE 1 -Computer Systems Warm Booting
  • 16. 22CS301 - Operating Systems MODULE 1 -Computer Systems What type of booting “when a computer starts up for the first time or when it is shut down, and the power button is pressed to restart the system”.
  • 17. 22CS301 - Operating Systems MODULE 1 -Computer Systems Cold Booting