SlideShare a Scribd company logo
Faculty of Computers and
Information
Second Year (Second Semester)
Operating Systems I
Dr. Ashraf Elsisi
Textbooks
- Operating Systems – Internals And Design
7thPrinciples – Edition
8th- Operating system concepts
-Windows® 7 Resource Kit
-Galvin
-Windows-powershell-cookbook-the-complete-
guide-to-scripting-microsofts-command-shell
Additional Reading:
Tanenbaum - Modern Operating Systems
………
Course Description
The purpose of the course is to understand the
general concepts of operating systems.
The course introduces :
•Computer
•Operating
System,
System (Process, Threads,
Concurrency, scheduling,
Memory Management)
If we have time, Deadlock
Prerequisites
Introductory course in Theory of systems, Programming
skills, Logic Systems, Computer Architecture, …
Homework + Lab
Homework will be assigned weekly.
Note late homework will not be accepted.
Examination
At least one-hour midterm exam is tentatively scheduled for
week seven of the quarter. The actual data for the exam will be
determined by the progress in the course.
Grading
• The composition of the final grade is:
• Homework + Lab + Midterm Exam 40%
• Final Exam 60%
Computer System Overview
CHAPTER 1
1. What is operating system?
• Exploits the hardware resources of one
or more processors
• Provides a set of services to system users
• Manages secondary memory and I/O
devices
2. Computer hardware overview
•
•
Processor
Main Memory
– referred to as real memory or
– volatile
I/O modules
primary memory
•
–
–
–
secondary memory devices
communications equipment
terminals
• System bus
– communication among processors, memory, and
I/O modules
Computer System
Computer Components
Computer Components
Registers
The component that performs computation is CPU, or
more concretely it is the ALU (arithmetic logical unit)
in CPU that do the computation.
•
• To compute, we need first prepare input; however ALU
cannot access memory directly, Instead, a set of
registersare provided as a cache that is
smaller than main memory.
faster but
• (They are smaller between they are much more
expensive than regular memory.)
Processor Registers
The textbook reference categorizes registers
two types:
User-visible registers
– Enable programmer to minimize main-memory
references by optimizing register use
Control and status registers
– Used by processor to control operating of the
processor
– Used by operating-system routines to control the
execution of programs
• into
•
•
User-Visible Registers
May be referenced by machine language
Available to all programs - application
programs and system programs
Types of registers
– Data
– Address
•
•
•
•
•
•
Index
Stack Segment
Stack pointer
SS
SP
• Address Registers
– Index
• involves adding an index to a base value to
an address
Segment pointer
• when memory is divided into segments,
memory is referenced by a segment and an
offset
Stack pointer
• points to top of stack
get
–
–
Control and Status Registers
Program Counter (PC)
– Contains the address of an instruction to be fetched
Instruction Register (IR)
– Contains the instruction most recently fetched
Program Status Word (PSW)
•
•
•
–
–
–
condition codes
Interrupt enable/disable
Supervisor/user mode
Instruction Register
Fetched instruction is placed in the instruction• register.
Types of instructions:
– Processor-memory
• transfer data between processor and memory
Processor-I/O
• data transferred to or from a peripheral device
Data processing
• arithmetic or logic operation on data
Control
• alter sequence of execution
–
–
–
• Condition Codes or Flags
– Bits set by the processor hardware as a
result of operations
– Can be accessed
altered
Examples
by a program but not
–
•
•
•
•
positive result
negative
result
zero
Overflow
2.3 Instruction execution
Instruction Fetch and Execute
• The processor fetches the instruction from
memory
• Program counter (PC) holds address of the
instruction to be fetched next
• Program counter is incremented after each fetch
Example of Program Execution
How a partial program is
two numbers.
executed step by step to add
Instruction
operand).
consists of from two parts (opcode,
Opcode: 1 Load, 2 Store, 5 Add
Operand: Data, Address,
Example of Program Execution
Example of Program Execution
Example of Program Execution
Example of Program Execution
Example of Program Execution
Example of Program Execution
Interrupts
• An interruption of the normal sequence of
execution
Improves processing efficiency•
• Allows the processorto
I/O
execute
operation
other
instructions
progress
while an is in
• A suspension of a process caused by an event
external to that process and performed in such
a way that the process can be resumed
Classes of Interrupts
Program•
–
–
–
–
arithmetic overflow
division by zero
execute illegal instruction
reference outside user’s memory space
•
•
•
Timer
I/O
Hardware failure
I/O processing with interrupts
(Interrupt Handler)
A program that determines nature of the interrupt
and performs whatever actions are needed.
•
• Control is transferred to this program
• Generally part of the operating system
Interrupt Cycle
Interrupt Cycle
Processor checks for interrupts•
• If no interrupts fetch the next instruction for
the current program
• If an interrupt is pending, suspend execution
of the current program, and execute the
interrupt handler

More Related Content

What's hot

The Operating System
The Operating SystemThe Operating System
The Operating System
andyr91
 
Chapter1
Chapter1Chapter1
Chapter 2 (Part 2)
Chapter 2 (Part 2) Chapter 2 (Part 2)
Chapter 2 (Part 2)
rohassanie
 
Register Organization and Instruction cycle
Register Organization and Instruction cycleRegister Organization and Instruction cycle
Register Organization and Instruction cycle
Muhammad Ameer Mohavia
 
Real Time Operating System
Real Time Operating SystemReal Time Operating System
Real Time Operating System
vivek223
 
Operating system 18 process creation and termination
Operating system 18 process creation and terminationOperating system 18 process creation and termination
Operating system 18 process creation and termination
Vaibhav Khanna
 
Program execution
Program executionProgram execution
Program execution
peoplesmagnet
 
Lec 2
Lec 2Lec 2
The Functions of the Operating System
The Functions of the Operating SystemThe Functions of the Operating System
The Functions of the Operating System
andyr91
 
Operating system 05 functions of os
Operating system 05 functions of osOperating system 05 functions of os
Operating system 05 functions of os
Vaibhav Khanna
 
Real Time Operating System
Real Time Operating SystemReal Time Operating System
Real Time Operating System
Himanshu Choudhary
 
The Functions of the Operating System
The Functions of the Operating SystemThe Functions of the Operating System
The Functions of the Operating System
andyr91
 
Operating Systems 1 (6/12) - Processes
Operating Systems 1 (6/12) - ProcessesOperating Systems 1 (6/12) - Processes
Operating Systems 1 (6/12) - Processes
Peter Tröger
 
Ch14.run time support systems
Ch14.run time support systemsCh14.run time support systems
Ch14.run time support systems
Yi-Jun Zheng
 
Processes Control Block (Operating System)
Processes Control Block (Operating System)Processes Control Block (Operating System)
Processes Control Block (Operating System)
Imdad Ullah
 
Os concepts 4 functions of os
Os concepts 4 functions of osOs concepts 4 functions of os
Os concepts 4 functions of os
Vaibhav Khanna
 
Coal 10 instruction cycle and interrupts in Assembly Programming
Coal 10 instruction cycle and interrupts in Assembly ProgrammingCoal 10 instruction cycle and interrupts in Assembly Programming
Coal 10 instruction cycle and interrupts in Assembly Programming
Muhammad Taqi Hassan Bukhari
 
Process management
Process managementProcess management
Process management
Digpal Singh Jhala
 
OperatingSystem01..(B.SC Part 2)
OperatingSystem01..(B.SC Part 2)OperatingSystem01..(B.SC Part 2)
OperatingSystem01..(B.SC Part 2)
Muhammad Osama
 
RTOS for Embedded System Design
RTOS for Embedded System DesignRTOS for Embedded System Design
RTOS for Embedded System Design
anand hd
 

What's hot (20)

The Operating System
The Operating SystemThe Operating System
The Operating System
 
Chapter1
Chapter1Chapter1
Chapter1
 
Chapter 2 (Part 2)
Chapter 2 (Part 2) Chapter 2 (Part 2)
Chapter 2 (Part 2)
 
Register Organization and Instruction cycle
Register Organization and Instruction cycleRegister Organization and Instruction cycle
Register Organization and Instruction cycle
 
Real Time Operating System
Real Time Operating SystemReal Time Operating System
Real Time Operating System
 
Operating system 18 process creation and termination
Operating system 18 process creation and terminationOperating system 18 process creation and termination
Operating system 18 process creation and termination
 
Program execution
Program executionProgram execution
Program execution
 
Lec 2
Lec 2Lec 2
Lec 2
 
The Functions of the Operating System
The Functions of the Operating SystemThe Functions of the Operating System
The Functions of the Operating System
 
Operating system 05 functions of os
Operating system 05 functions of osOperating system 05 functions of os
Operating system 05 functions of os
 
Real Time Operating System
Real Time Operating SystemReal Time Operating System
Real Time Operating System
 
The Functions of the Operating System
The Functions of the Operating SystemThe Functions of the Operating System
The Functions of the Operating System
 
Operating Systems 1 (6/12) - Processes
Operating Systems 1 (6/12) - ProcessesOperating Systems 1 (6/12) - Processes
Operating Systems 1 (6/12) - Processes
 
Ch14.run time support systems
Ch14.run time support systemsCh14.run time support systems
Ch14.run time support systems
 
Processes Control Block (Operating System)
Processes Control Block (Operating System)Processes Control Block (Operating System)
Processes Control Block (Operating System)
 
Os concepts 4 functions of os
Os concepts 4 functions of osOs concepts 4 functions of os
Os concepts 4 functions of os
 
Coal 10 instruction cycle and interrupts in Assembly Programming
Coal 10 instruction cycle and interrupts in Assembly ProgrammingCoal 10 instruction cycle and interrupts in Assembly Programming
Coal 10 instruction cycle and interrupts in Assembly Programming
 
Process management
Process managementProcess management
Process management
 
OperatingSystem01..(B.SC Part 2)
OperatingSystem01..(B.SC Part 2)OperatingSystem01..(B.SC Part 2)
OperatingSystem01..(B.SC Part 2)
 
RTOS for Embedded System Design
RTOS for Embedded System DesignRTOS for Embedded System Design
RTOS for Embedded System Design
 

Similar to Lec 1

Lec 3
Lec 3 Lec 3
Lec 3
mohamed ali
 
UNIT-111.pptx
UNIT-111.pptxUNIT-111.pptx
UNIT-111.pptx
JALLAANITHAREDDY
 
Engg-0505-IT-Operating-Systems-2nd-year.pdf
Engg-0505-IT-Operating-Systems-2nd-year.pdfEngg-0505-IT-Operating-Systems-2nd-year.pdf
Engg-0505-IT-Operating-Systems-2nd-year.pdf
nikhil287188
 
Unit 2_OS process management
Unit 2_OS process management Unit 2_OS process management
Unit 2_OS process management
JayeshGadhave1
 
OS Content.pdf
OS Content.pdfOS Content.pdf
OS Content.pdf
VAIBHAVSAHU55
 
03_Top Level View of Computer Function and Interconnection.ppt
03_Top Level View of Computer Function and Interconnection.ppt03_Top Level View of Computer Function and Interconnection.ppt
03_Top Level View of Computer Function and Interconnection.ppt
ChABiDRazZaQ
 
Operating Systems PPT 1 (1).pdf
Operating Systems PPT 1 (1).pdfOperating Systems PPT 1 (1).pdf
Operating Systems PPT 1 (1).pdf
FahanaAbdulVahab
 
OSLecture1.ppt
OSLecture1.pptOSLecture1.ppt
OSLecture1.ppt
AkkiiDerp
 
What is an Operating Systems?
What is an Operating Systems?What is an Operating Systems?
What is an Operating Systems?
JayaKamal
 
ayq.ppt
ayq.pptayq.ppt
ayq.ppt
AmitDeshai
 
Unit 4
Unit  4Unit  4
Unit 4
pm_ghate
 
Os1
Os1Os1
os unit 1.pdf
os unit 1.pdfos unit 1.pdf
os unit 1.pdf
MananBatra17
 
Os unit 3 , process management
Os unit 3 , process managementOs unit 3 , process management
Os unit 3 , process management
Arnav Chowdhury
 
Computer system architecture
Computer system architectureComputer system architecture
Computer system architecture
jeetesh036
 
CPU Architecture - Basic
CPU Architecture - BasicCPU Architecture - Basic
CPU Architecture - Basic
Yong Heui Cho
 
operating-system-objectives-and-functions-d2.ppt
operating-system-objectives-and-functions-d2.pptoperating-system-objectives-and-functions-d2.ppt
operating-system-objectives-and-functions-d2.ppt
senthilnathans2015
 
Introduction to OS.pptx
Introduction to OS.pptxIntroduction to OS.pptx
Introduction to OS.pptx
taruian
 
CSE3120- Module1 part 1 v1.pptx
CSE3120- Module1 part 1 v1.pptxCSE3120- Module1 part 1 v1.pptx
CSE3120- Module1 part 1 v1.pptx
akhilagajjala
 
What is operating system
What is operating systemWhat is operating system
What is operating system
Suvithak
 

Similar to Lec 1 (20)

Lec 3
Lec 3 Lec 3
Lec 3
 
UNIT-111.pptx
UNIT-111.pptxUNIT-111.pptx
UNIT-111.pptx
 
Engg-0505-IT-Operating-Systems-2nd-year.pdf
Engg-0505-IT-Operating-Systems-2nd-year.pdfEngg-0505-IT-Operating-Systems-2nd-year.pdf
Engg-0505-IT-Operating-Systems-2nd-year.pdf
 
Unit 2_OS process management
Unit 2_OS process management Unit 2_OS process management
Unit 2_OS process management
 
OS Content.pdf
OS Content.pdfOS Content.pdf
OS Content.pdf
 
03_Top Level View of Computer Function and Interconnection.ppt
03_Top Level View of Computer Function and Interconnection.ppt03_Top Level View of Computer Function and Interconnection.ppt
03_Top Level View of Computer Function and Interconnection.ppt
 
Operating Systems PPT 1 (1).pdf
Operating Systems PPT 1 (1).pdfOperating Systems PPT 1 (1).pdf
Operating Systems PPT 1 (1).pdf
 
OSLecture1.ppt
OSLecture1.pptOSLecture1.ppt
OSLecture1.ppt
 
What is an Operating Systems?
What is an Operating Systems?What is an Operating Systems?
What is an Operating Systems?
 
ayq.ppt
ayq.pptayq.ppt
ayq.ppt
 
Unit 4
Unit  4Unit  4
Unit 4
 
Os1
Os1Os1
Os1
 
os unit 1.pdf
os unit 1.pdfos unit 1.pdf
os unit 1.pdf
 
Os unit 3 , process management
Os unit 3 , process managementOs unit 3 , process management
Os unit 3 , process management
 
Computer system architecture
Computer system architectureComputer system architecture
Computer system architecture
 
CPU Architecture - Basic
CPU Architecture - BasicCPU Architecture - Basic
CPU Architecture - Basic
 
operating-system-objectives-and-functions-d2.ppt
operating-system-objectives-and-functions-d2.pptoperating-system-objectives-and-functions-d2.ppt
operating-system-objectives-and-functions-d2.ppt
 
Introduction to OS.pptx
Introduction to OS.pptxIntroduction to OS.pptx
Introduction to OS.pptx
 
CSE3120- Module1 part 1 v1.pptx
CSE3120- Module1 part 1 v1.pptxCSE3120- Module1 part 1 v1.pptx
CSE3120- Module1 part 1 v1.pptx
 
What is operating system
What is operating systemWhat is operating system
What is operating system
 

Recently uploaded

Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Fajar Baskoro
 
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptxPrésentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
siemaillard
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
Nicholas Montgomery
 
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
Nguyen Thanh Tu Collection
 
Leveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit InnovationLeveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit Innovation
TechSoup
 
How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience
Wahiba Chair Training & Consulting
 
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
imrankhan141184
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
PECB
 
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) CurriculumPhilippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
MJDuyan
 
Wound healing PPT
Wound healing PPTWound healing PPT
Wound healing PPT
Jyoti Chand
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Excellence Foundation for South Sudan
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
Celine George
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
adhitya5119
 
Constructing Your Course Container for Effective Communication
Constructing Your Course Container for Effective CommunicationConstructing Your Course Container for Effective Communication
Constructing Your Course Container for Effective Communication
Chevonnese Chevers Whyte, MBA, B.Sc.
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
Nguyen Thanh Tu Collection
 
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptxChapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Denish Jangid
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
adhitya5119
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
WaniBasim
 
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skillsspot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
haiqairshad
 
math operations ued in python and all used
math operations ued in python and all usedmath operations ued in python and all used
math operations ued in python and all used
ssuser13ffe4
 

Recently uploaded (20)

Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
 
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptxPrésentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
 
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
 
Leveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit InnovationLeveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit Innovation
 
How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience
 
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
 
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) CurriculumPhilippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
 
Wound healing PPT
Wound healing PPTWound healing PPT
Wound healing PPT
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
 
Constructing Your Course Container for Effective Communication
Constructing Your Course Container for Effective CommunicationConstructing Your Course Container for Effective Communication
Constructing Your Course Container for Effective Communication
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
 
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptxChapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptx
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
 
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skillsspot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
 
math operations ued in python and all used
math operations ued in python and all usedmath operations ued in python and all used
math operations ued in python and all used
 

Lec 1

  • 1. Faculty of Computers and Information Second Year (Second Semester) Operating Systems I Dr. Ashraf Elsisi
  • 2. Textbooks - Operating Systems – Internals And Design 7thPrinciples – Edition 8th- Operating system concepts -Windows® 7 Resource Kit -Galvin -Windows-powershell-cookbook-the-complete- guide-to-scripting-microsofts-command-shell Additional Reading: Tanenbaum - Modern Operating Systems ………
  • 3. Course Description The purpose of the course is to understand the general concepts of operating systems. The course introduces : •Computer •Operating System, System (Process, Threads, Concurrency, scheduling, Memory Management) If we have time, Deadlock
  • 4. Prerequisites Introductory course in Theory of systems, Programming skills, Logic Systems, Computer Architecture, … Homework + Lab Homework will be assigned weekly. Note late homework will not be accepted. Examination At least one-hour midterm exam is tentatively scheduled for week seven of the quarter. The actual data for the exam will be determined by the progress in the course.
  • 5. Grading • The composition of the final grade is: • Homework + Lab + Midterm Exam 40% • Final Exam 60%
  • 7. 1. What is operating system? • Exploits the hardware resources of one or more processors • Provides a set of services to system users • Manages secondary memory and I/O devices
  • 8. 2. Computer hardware overview • • Processor Main Memory – referred to as real memory or – volatile I/O modules primary memory • – – – secondary memory devices communications equipment terminals • System bus – communication among processors, memory, and I/O modules
  • 12. Registers The component that performs computation is CPU, or more concretely it is the ALU (arithmetic logical unit) in CPU that do the computation. • • To compute, we need first prepare input; however ALU cannot access memory directly, Instead, a set of registersare provided as a cache that is smaller than main memory. faster but • (They are smaller between they are much more expensive than regular memory.)
  • 13. Processor Registers The textbook reference categorizes registers two types: User-visible registers – Enable programmer to minimize main-memory references by optimizing register use Control and status registers – Used by processor to control operating of the processor – Used by operating-system routines to control the execution of programs • into • •
  • 14. User-Visible Registers May be referenced by machine language Available to all programs - application programs and system programs Types of registers – Data – Address • • • • • • Index Stack Segment Stack pointer SS SP
  • 15. • Address Registers – Index • involves adding an index to a base value to an address Segment pointer • when memory is divided into segments, memory is referenced by a segment and an offset Stack pointer • points to top of stack get – –
  • 16. Control and Status Registers Program Counter (PC) – Contains the address of an instruction to be fetched Instruction Register (IR) – Contains the instruction most recently fetched Program Status Word (PSW) • • • – – – condition codes Interrupt enable/disable Supervisor/user mode
  • 17. Instruction Register Fetched instruction is placed in the instruction• register. Types of instructions: – Processor-memory • transfer data between processor and memory Processor-I/O • data transferred to or from a peripheral device Data processing • arithmetic or logic operation on data Control • alter sequence of execution – – –
  • 18. • Condition Codes or Flags – Bits set by the processor hardware as a result of operations – Can be accessed altered Examples by a program but not – • • • • positive result negative result zero Overflow
  • 20. Instruction Fetch and Execute • The processor fetches the instruction from memory • Program counter (PC) holds address of the instruction to be fetched next • Program counter is incremented after each fetch
  • 21. Example of Program Execution How a partial program is two numbers. executed step by step to add Instruction operand). consists of from two parts (opcode, Opcode: 1 Load, 2 Store, 5 Add Operand: Data, Address,
  • 22. Example of Program Execution
  • 23. Example of Program Execution
  • 24. Example of Program Execution
  • 25. Example of Program Execution
  • 26. Example of Program Execution
  • 27. Example of Program Execution
  • 28. Interrupts • An interruption of the normal sequence of execution Improves processing efficiency• • Allows the processorto I/O execute operation other instructions progress while an is in • A suspension of a process caused by an event external to that process and performed in such a way that the process can be resumed
  • 29. Classes of Interrupts Program• – – – – arithmetic overflow division by zero execute illegal instruction reference outside user’s memory space • • • Timer I/O Hardware failure
  • 30. I/O processing with interrupts (Interrupt Handler) A program that determines nature of the interrupt and performs whatever actions are needed. • • Control is transferred to this program • Generally part of the operating system
  • 32. Interrupt Cycle Processor checks for interrupts• • If no interrupts fetch the next instruction for the current program • If an interrupt is pending, suspend execution of the current program, and execute the interrupt handler