SlideShare a Scribd company logo
Faculty of Computers andFaculty of Computers and
InformationInformation
Second Year (Second Semester)Second Year (Second Semester)
____________________________________________________________
Operating Systems IOperating Systems I
( )( )
____________________________________________________________
Dr. Ashraf ElsisiDr. Ashraf Elsisi
____________________________________________________
Computer Hardware Basics
• What are the meanings of the following terms?g g
1. 32-bit microprocessor, and 32-bit instructions.p ,
2. Opcode, immediate operand, and operand address.
3. Local data bus, and local address bus.3. Local data bus, and local address bus.
4. Machine cycle, processor cycle, and bus cycle.
It refers to the number of bits that can be processed
or transmitted in parallel, or the number of bits used
for single element in a data format.
Th titi th t ll difi d b thThe entities that are usually modified by these
numbers are:
•BusBus
•Microprocessor
•Software
•Operating system
Opcode operand and addressing modeOpcode, operand, and addressing mode
A hi i i i d f d d• A machine instruction is made up of an opcode and
one or more operands.
• The opcode tells the processor what action top p
perform over the following operands.
• The methods for specify the operand(s) for a machine
i t ti ll d dd i dinstruction are called addressing modes.
Bus
A bus is a collection of wires through which data
is transmitted from one part of a computer to
thanother.
According to the type of data transmitted through theg yp g
bus, we have:
b h b d l d• Data bus: The bus used to carry actual data.
•Address bus: The bus transferring information
about where the data should goabout where the data should go.
•Control bus: The physical connections that carry
control information between the CPU and other
devices within the computer.
According to the location of buses, or what kinds of
components they connect, we have:p y ,
Local bus:Local bus:
Another name of system bus, which connects the
microprocessor main memory and all kinds of I/Omicroprocessor, main memory, and all kinds of I/O
modules.
A local bus is also called frontside bus, memory bus, or, y ,
host bus.
Backside bus:
A microprocessor bus that connects the CPU to a Level 2
cache.
Typically, a backside bus runs at a faster clock speed than
the frontside
External bus:
A bus that connects a computer to peripheral devices.
S dSpeeds
• System clock
There are so many circuits inside a computerThere are so many circuits inside a computer.
To perform a specific action, it is necessary forp p y
some sort of synchronization to occur so that
different parts function and cooperate as expected.
The”conductor” of the PC is the system clock,
which brings synchronizationwhich brings synchronization.
A clock is just a signal that alternates between zeroj g
and one, back and forth.
The pulses generated by the clockThe pulses generated by the clock
Memory Access time:
also known as response time or latency refers to how
quickly the memory can respond to a read or write
trequest.
•Memory cycle:Memory cycle:
refers to the minimum period between two successive
requests.q
For various reasons the time separating two successive
i l 0 i i hrequests is not always 0, i.e a memory with a response
time of 80 ns cannot satisfy a request every 80 ns.
Machine cycle:Machine cycle:
also called instruction cycle, the four steps which the
CPU i t f h hi lCPU carries out for each machine language
instruction: fetch, decode, execute, and store.
CachesCaches
Level 1 (Primary) Cache:
•The fastest memory on the PC.y
•It is in fact, built directly into the processor itself.
•This cache is very small, generally from 8 KB to 64
KB, but it is extremely fast; it runs at the same speed as
the processor.
If the processor requests information and can find it in
the level 1 cache, that is the best case, because thethe level 1 cache, that is the best case, because the
information is there immediately and the system does
not have to wait.
Level 2 (Secondary) Cache:Level 2 (Secondary) Cache:
The level 2 cache is a secondary cache to the level 1
h d i l d li htl lcache, and is larger and slightly slower.
Name some OS’sName some OS s
• Linux • PalmOS
• Unix
• Windows
• TinyOS
• WinCEW dows
• Multics
• BSDUnix
W C
• Spring
• 2KBSDUnix
• Mac/Tiger
• Vista
2K
• ….
• Vista
MulticoreMulticore
• A multicore computer, also known as a chipA multicore computer, also known as a chip
multiprocessor , combines two or more
processors (called cores) on a single piece ofp ocesso s (ca ed co es) o a s g e p ece o
silicon (called a die).
• Typically, each core consists of all of the
t f i d d t hcomponents of an independent processor, such
as registers, ALU, pipeline hardware, and
control nit pl s L1 instr ction and data cachescontrol unit, plus L1 instruction and data caches.
• Virtualization
– enables a single PC or server to simultaneously run
l i l i l i l i fmultiple operating systems or multiple sessions of a
single OS
– a machine can host numerous applications, includinga machine can host numerous applications, including
those that run on different operating systems, on a single
platform
h t ti t t b– host operating system can support a number
of virtual machines (VM)
– each has the characteristics of a particular OSeach has the characteristics of a particular OS
VirtualVirtual
MemoryMemoryMemoryMemory
ConceptConcept
Process perspective:Process perspective:
• the machine on which it executes consists of the virtual memory space assigned to
the process
• the processor registers it may use
• the user-level machine instructions it may execute
• OS system calls it may invoke for I/O
• ABI defines the machine as seen by a process
Application perspective:Application perspective:
• machine characteristics are specified by high-level language capabilities and OS
system library calls
• API defines the machine for an application
Application perspective:Application perspective:
• processes share a file system and other I/O resources
OS perspective:OS perspective:
• system allocates real memory and I/O resources to the processes
• ISA provides the interface between the system and machine
Process and System Virtual MachinesProcess and System Virtual MachinesProcess and System Virtual MachinesProcess and System Virtual Machines
Process and System Virtual MachinesProcess and System Virtual MachinesProcess and System Virtual MachinesProcess and System Virtual Machines
•What is the meaning of installation?
(Installation program)(Installation program)
•Why we are using installation?
Wh t f i ll i ?•What are types of installations?
•What are Device drivers?
•List programs in system tools in Win7?•List programs in system tools in Win7?
Chapter 3
Process Concept and State
Major Requirements of an Operating
SSystem
• Interleave the execution of several jobs toInterleave the execution of several jobs to
maximize processor utilization while
providing reasonable response timep ov d g easonable espo se t e
All t t• Allocate resources to processes
• Support interjobs communication and user
creation of processes (jobs)
Process
• Textbook uses the terms job and process almost
interchangeablyinterchangeably
• Process a program in execution;• Process – a program in execution;
process execution must progress in sequential fashion
• A process includes:
– program counterprogram counter
– stack
– data section
It is program
switches theswitches the
processor from one
process to another
Traces of processes
Two-State Process ModelTwo State Process Model
• Process may be in one of two statesProcess may be in one of two states
– Running
– Not-runningNot running
Not-Running Process in a
QQueue
Process CreationProcess Creation
• When a new process, OS builds the data
structures that are used to manage the processstructures that are used to manage the process.
• Reasons for process creation
– Submission of a batch job
– User logs on
– Created to provide a service such as printingp p g
– Process creates another process (spawning)
[parent – child]
Process TerminationProcess Termination
• Any computer system must provide a meansAny computer system must provide a means
for a process to indicate its completion.
• Batch job issues Halt instruction (call for• Batch job issues Halt instruction (call for
termination)
U l ff• User logs off
• Quit an application
• Error and fault conditions
Reasons for Process TerminationReasons for Process Termination
• Normal completion
Ti li it d d• Time limit exceeded
• Memory unavailable
• Protection error• Protection error
– example write to read-only file
• Arithmetic errorArithmetic error
• When a process finishes, the operating system
will free the memory space it occupies andy p p
remove the data structures it allocated to
manage the process.
A fi t t d lA five-state model
• As a process executes, it changes statep , g
running: Instructions are being executed
new: The process is being created
waiting: The process is waiting for some event to
occur
ready: The process is waiting to be assigned to a
process
terminated: The process has finished executionterminated: The process has finished execution
• RunningRunning
• Ready
Bl k d
Not running
• Blocked
• New
• Exit
Using Two QueuesUsing Two Queues
Process swapping and Suspended
PProcesses
• Processor is faster than I/O so all processesProcessor is faster than I/O so all processes
could be waiting for I/O
• Swap these processes to disk to free up moreSwap these processes to disk to free up more
memory
• Blocked state becomes suspend state whenBlocked state becomes suspend state when
swapped to disk
• Two new statesTwo new states
– Blocked, suspend (in secondary memory)
– Ready, suspend in (secondary memory)y, p ( y y)
One Suspend StateOne Suspend State
Two Suspend StatesTwo Suspend States

More Related Content

What's hot

Operating System / System Operasi
Operating System / System Operasi                   Operating System / System Operasi
Operating System / System Operasi
seolangit4
 
Process management os concept
Process management os conceptProcess management os concept
Process management os concept
priyadeosarkar91
 
Cs8493 unit 1
Cs8493 unit 1Cs8493 unit 1
Cs8493 unit 1
Kathirvel Ayyaswamy
 
Operating system interview question
Operating system interview questionOperating system interview question
Operating system interview questionsriram saravanan
 
CS6401 Operating Systems
CS6401 Operating SystemsCS6401 Operating Systems
CS6401 Operating Systems
Kathirvel Ayyaswamy
 
Operating systems types, spooling and buffering
Operating systems types, spooling and bufferingOperating systems types, spooling and buffering
Operating systems types, spooling and buffering
Ayush Jain
 
Introduction to Operating System (Important Notes)
Introduction to Operating System (Important Notes)Introduction to Operating System (Important Notes)
Introduction to Operating System (Important Notes)
Gaurav Kakade
 
Cs8493 unit 5
Cs8493 unit 5Cs8493 unit 5
Cs8493 unit 5
Kathirvel Ayyaswamy
 
Os solved question paper
Os solved question paperOs solved question paper
Os solved question paperAnkit Bhatnagar
 
Computer system architecture
Computer system architectureComputer system architecture
Computer system architectureKumar
 
Cs8493 unit 2
Cs8493 unit 2Cs8493 unit 2
Cs8493 unit 2
Kathirvel Ayyaswamy
 
CS6401 OPERATING SYSTEMS Unit 2
CS6401 OPERATING SYSTEMS Unit 2CS6401 OPERATING SYSTEMS Unit 2
CS6401 OPERATING SYSTEMS Unit 2
Kathirvel Ayyaswamy
 
Introduction to operating system
Introduction to operating systemIntroduction to operating system
Introduction to operating system
Akshay Ithape
 
Operating System 3
Operating System 3Operating System 3
Operating System 3tech2click
 
Chapter 2 part 1
Chapter 2 part 1Chapter 2 part 1
Chapter 2 part 1rohassanie
 
Operating system 11 system calls
Operating system 11 system callsOperating system 11 system calls
Operating system 11 system calls
Vaibhav Khanna
 
fundamental of computer-u-1-computer hardware system
fundamental of  computer-u-1-computer hardware systemfundamental of  computer-u-1-computer hardware system
fundamental of computer-u-1-computer hardware system
Rai University
 
COMPUTER HARDWARE - SHORT NOTES
COMPUTER HARDWARE - SHORT NOTESCOMPUTER HARDWARE - SHORT NOTES
COMPUTER HARDWARE - SHORT NOTES
suthi
 

What's hot (20)

Operating System / System Operasi
Operating System / System Operasi                   Operating System / System Operasi
Operating System / System Operasi
 
Process management os concept
Process management os conceptProcess management os concept
Process management os concept
 
Cs8493 unit 1
Cs8493 unit 1Cs8493 unit 1
Cs8493 unit 1
 
Operating system interview question
Operating system interview questionOperating system interview question
Operating system interview question
 
CS6401 Operating Systems
CS6401 Operating SystemsCS6401 Operating Systems
CS6401 Operating Systems
 
Os4
Os4Os4
Os4
 
Operating systems types, spooling and buffering
Operating systems types, spooling and bufferingOperating systems types, spooling and buffering
Operating systems types, spooling and buffering
 
Introduction to Operating System (Important Notes)
Introduction to Operating System (Important Notes)Introduction to Operating System (Important Notes)
Introduction to Operating System (Important Notes)
 
Cs8493 unit 5
Cs8493 unit 5Cs8493 unit 5
Cs8493 unit 5
 
Os solved question paper
Os solved question paperOs solved question paper
Os solved question paper
 
Computer system architecture
Computer system architectureComputer system architecture
Computer system architecture
 
Cs8493 unit 2
Cs8493 unit 2Cs8493 unit 2
Cs8493 unit 2
 
CS6401 OPERATING SYSTEMS Unit 2
CS6401 OPERATING SYSTEMS Unit 2CS6401 OPERATING SYSTEMS Unit 2
CS6401 OPERATING SYSTEMS Unit 2
 
Introduction to operating system
Introduction to operating systemIntroduction to operating system
Introduction to operating system
 
Operating System 3
Operating System 3Operating System 3
Operating System 3
 
Chapter 2 part 1
Chapter 2 part 1Chapter 2 part 1
Chapter 2 part 1
 
Operating system 11 system calls
Operating system 11 system callsOperating system 11 system calls
Operating system 11 system calls
 
Os2
Os2Os2
Os2
 
fundamental of computer-u-1-computer hardware system
fundamental of  computer-u-1-computer hardware systemfundamental of  computer-u-1-computer hardware system
fundamental of computer-u-1-computer hardware system
 
COMPUTER HARDWARE - SHORT NOTES
COMPUTER HARDWARE - SHORT NOTESCOMPUTER HARDWARE - SHORT NOTES
COMPUTER HARDWARE - SHORT NOTES
 

Viewers also liked

Evaluación sesión 25 26
Evaluación sesión 25 26Evaluación sesión 25 26
Evaluación sesión 25 26Miel Hudgens
 
Equipo59 tarea9
Equipo59 tarea9Equipo59 tarea9
Equipo59 tarea9
Mafer Martínez
 
Sound In Film
Sound In FilmSound In Film
Sound In Film
olamistill
 
B'an0195sort abc
B'an0195sort abcB'an0195sort abc
B'an0195sort abcGWROY
 
2016 Audi A7 Brochure | Orange County Audi Dealer
2016 Audi A7 Brochure | Orange County Audi Dealer2016 Audi A7 Brochure | Orange County Audi Dealer
2016 Audi A7 Brochure | Orange County Audi Dealer
Audi Mission Viejo
 
Playing Web Fuzzing - H2HC 2009
Playing Web Fuzzing - H2HC 2009Playing Web Fuzzing - H2HC 2009
Playing Web Fuzzing - H2HC 2009
Conviso Application Security
 
Magazine advert presentation
Magazine advert presentationMagazine advert presentation
Magazine advert presentationNadia Child
 
Trabajo de slideshare
Trabajo de   slideshareTrabajo de   slideshare
Trabajo de slideshare
Handerson Minda Chilma
 
Three Perfect Days
Three Perfect DaysThree Perfect Days
Three Perfect DaysMelissa Nix
 
Centermark - The Ultimate Distributed Marketing Automation Platform
Centermark - The Ultimate Distributed Marketing Automation PlatformCentermark - The Ultimate Distributed Marketing Automation Platform
Centermark - The Ultimate Distributed Marketing Automation Platform
Richard J Basch, CFE, MBA, PMP
 
B'ang0750
B'ang0750B'ang0750
B'ang0750GWROY
 
Reaksi penggaraman 3 KD 2 SMK-SMAK Bogor
Reaksi penggaraman 3 KD 2 SMK-SMAK BogorReaksi penggaraman 3 KD 2 SMK-SMAK Bogor
Reaksi penggaraman 3 KD 2 SMK-SMAK Bogor
DeviPurnama
 
Pilates para la salud y el deporte
Pilates para la salud y el deportePilates para la salud y el deporte
Pilates para la salud y el deporte
Rocío Fernández Nadal
 
Ex net
Ex netEx net

Viewers also liked (18)

Look book
Look bookLook book
Look book
 
Evaluación sesión 25 26
Evaluación sesión 25 26Evaluación sesión 25 26
Evaluación sesión 25 26
 
Ondas
OndasOndas
Ondas
 
Equipo59 tarea9
Equipo59 tarea9Equipo59 tarea9
Equipo59 tarea9
 
matseba
matsebamatseba
matseba
 
Sound In Film
Sound In FilmSound In Film
Sound In Film
 
B'an0195sort abc
B'an0195sort abcB'an0195sort abc
B'an0195sort abc
 
2016 Audi A7 Brochure | Orange County Audi Dealer
2016 Audi A7 Brochure | Orange County Audi Dealer2016 Audi A7 Brochure | Orange County Audi Dealer
2016 Audi A7 Brochure | Orange County Audi Dealer
 
Playing Web Fuzzing - H2HC 2009
Playing Web Fuzzing - H2HC 2009Playing Web Fuzzing - H2HC 2009
Playing Web Fuzzing - H2HC 2009
 
Magazine advert presentation
Magazine advert presentationMagazine advert presentation
Magazine advert presentation
 
Trabajo de slideshare
Trabajo de   slideshareTrabajo de   slideshare
Trabajo de slideshare
 
Three Perfect Days
Three Perfect DaysThree Perfect Days
Three Perfect Days
 
kka 110316
kka 110316kka 110316
kka 110316
 
Centermark - The Ultimate Distributed Marketing Automation Platform
Centermark - The Ultimate Distributed Marketing Automation PlatformCentermark - The Ultimate Distributed Marketing Automation Platform
Centermark - The Ultimate Distributed Marketing Automation Platform
 
B'ang0750
B'ang0750B'ang0750
B'ang0750
 
Reaksi penggaraman 3 KD 2 SMK-SMAK Bogor
Reaksi penggaraman 3 KD 2 SMK-SMAK BogorReaksi penggaraman 3 KD 2 SMK-SMAK Bogor
Reaksi penggaraman 3 KD 2 SMK-SMAK Bogor
 
Pilates para la salud y el deporte
Pilates para la salud y el deportePilates para la salud y el deporte
Pilates para la salud y el deporte
 
Ex net
Ex netEx net
Ex net
 

Similar to Lec 3

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
 
OS Content.pdf
OS Content.pdfOS Content.pdf
OS Content.pdf
VAIBHAVSAHU55
 
Operating Systems PPT 1 (1).pdf
Operating Systems PPT 1 (1).pdfOperating Systems PPT 1 (1).pdf
Operating Systems PPT 1 (1).pdf
FahanaAbdulVahab
 
opearating system notes mumbai university.pptx
opearating system notes mumbai university.pptxopearating system notes mumbai university.pptx
opearating system notes mumbai university.pptx
ssuser3dfcef
 
Introduction to Operating System
Introduction to Operating SystemIntroduction to Operating System
Introduction to Operating System
Divya S
 
Nt introduction(os)
Nt introduction(os)Nt introduction(os)
Nt introduction(os)
NehaTadam
 
MK Sistem Operasi.pdf
MK Sistem Operasi.pdfMK Sistem Operasi.pdf
MK Sistem Operasi.pdf
wisard1
 
Operating System
Operating SystemOperating System
Operating System
Hitesh Mohapatra
 
Chapter -2 operating system presentation
Chapter -2 operating system presentationChapter -2 operating system presentation
Chapter -2 operating system presentation
chnrketan
 
OPERATING SYSTEM - SHORT NOTES
OPERATING SYSTEM - SHORT NOTESOPERATING SYSTEM - SHORT NOTES
OPERATING SYSTEM - SHORT NOTES
suthi
 
Overview Of Operating System and its Basics
Overview Of Operating System and its BasicsOverview Of Operating System and its Basics
Overview Of Operating System and its Basics
Chandrakant Divate
 
Overview Of Operating Systems and its Basics
Overview Of Operating Systems and its BasicsOverview Of Operating Systems and its Basics
Overview Of Operating Systems and its Basics
Chandrakant Divate
 
OS chapter 1.pptx
OS chapter 1.pptxOS chapter 1.pptx
OS chapter 1.pptx
StBulteBelay
 
OS chapter 1.pptx
OS chapter 1.pptxOS chapter 1.pptx
OS chapter 1.pptx
StBulteBelay
 
Introduction to OS.pptx
Introduction to OS.pptxIntroduction to OS.pptx
Introduction to OS.pptx
taruian
 
Chapter 1 Introduction to Operating System Concepts
Chapter 1 Introduction to Operating System ConceptsChapter 1 Introduction to Operating System Concepts
Chapter 1 Introduction to Operating System Concepts
MeenalJabde
 
operatinndnd jdj jjrg-system-1(1) (1).pptx
operatinndnd jdj jjrg-system-1(1) (1).pptxoperatinndnd jdj jjrg-system-1(1) (1).pptx
operatinndnd jdj jjrg-system-1(1) (1).pptx
krishnajoshi70
 
Operating System-Concepts of Process
Operating System-Concepts of ProcessOperating System-Concepts of Process
Operating System-Concepts of Process
Shipra Swati
 
Operating Systems & Applications
Operating Systems & ApplicationsOperating Systems & Applications
Operating Systems & Applications
Maulen Bale
 
Computer system architecture
Computer system architectureComputer system architecture
Computer system architecture
jeetesh036
 

Similar to Lec 3 (20)

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
 
OS Content.pdf
OS Content.pdfOS Content.pdf
OS Content.pdf
 
Operating Systems PPT 1 (1).pdf
Operating Systems PPT 1 (1).pdfOperating Systems PPT 1 (1).pdf
Operating Systems PPT 1 (1).pdf
 
opearating system notes mumbai university.pptx
opearating system notes mumbai university.pptxopearating system notes mumbai university.pptx
opearating system notes mumbai university.pptx
 
Introduction to Operating System
Introduction to Operating SystemIntroduction to Operating System
Introduction to Operating System
 
Nt introduction(os)
Nt introduction(os)Nt introduction(os)
Nt introduction(os)
 
MK Sistem Operasi.pdf
MK Sistem Operasi.pdfMK Sistem Operasi.pdf
MK Sistem Operasi.pdf
 
Operating System
Operating SystemOperating System
Operating System
 
Chapter -2 operating system presentation
Chapter -2 operating system presentationChapter -2 operating system presentation
Chapter -2 operating system presentation
 
OPERATING SYSTEM - SHORT NOTES
OPERATING SYSTEM - SHORT NOTESOPERATING SYSTEM - SHORT NOTES
OPERATING SYSTEM - SHORT NOTES
 
Overview Of Operating System and its Basics
Overview Of Operating System and its BasicsOverview Of Operating System and its Basics
Overview Of Operating System and its Basics
 
Overview Of Operating Systems and its Basics
Overview Of Operating Systems and its BasicsOverview Of Operating Systems and its Basics
Overview Of Operating Systems and its Basics
 
OS chapter 1.pptx
OS chapter 1.pptxOS chapter 1.pptx
OS chapter 1.pptx
 
OS chapter 1.pptx
OS chapter 1.pptxOS chapter 1.pptx
OS chapter 1.pptx
 
Introduction to OS.pptx
Introduction to OS.pptxIntroduction to OS.pptx
Introduction to OS.pptx
 
Chapter 1 Introduction to Operating System Concepts
Chapter 1 Introduction to Operating System ConceptsChapter 1 Introduction to Operating System Concepts
Chapter 1 Introduction to Operating System Concepts
 
operatinndnd jdj jjrg-system-1(1) (1).pptx
operatinndnd jdj jjrg-system-1(1) (1).pptxoperatinndnd jdj jjrg-system-1(1) (1).pptx
operatinndnd jdj jjrg-system-1(1) (1).pptx
 
Operating System-Concepts of Process
Operating System-Concepts of ProcessOperating System-Concepts of Process
Operating System-Concepts of Process
 
Operating Systems & Applications
Operating Systems & ApplicationsOperating Systems & Applications
Operating Systems & Applications
 
Computer system architecture
Computer system architectureComputer system architecture
Computer system architecture
 

Recently uploaded

2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
Balvir Singh
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
Jheel Barad
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERP
Celine George
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
BhavyaRajput3
 
Basic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersBasic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumers
PedroFerreira53928
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdfESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
Fundacja Rozwoju Społeczeństwa Przedsiębiorczego
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
MIRIAMSALINAS13
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
beazzy04
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
Col Mukteshwar Prasad
 
How to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleHow to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS Module
Celine George
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 

Recently uploaded (20)

2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERP
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
 
Basic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersBasic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumers
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdfESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
 
How to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleHow to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS Module
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 

Lec 3

  • 1. Faculty of Computers andFaculty of Computers and InformationInformation Second Year (Second Semester)Second Year (Second Semester) ____________________________________________________________ Operating Systems IOperating Systems I ( )( ) ____________________________________________________________ Dr. Ashraf ElsisiDr. Ashraf Elsisi ____________________________________________________
  • 2. Computer Hardware Basics • What are the meanings of the following terms?g g 1. 32-bit microprocessor, and 32-bit instructions.p , 2. Opcode, immediate operand, and operand address. 3. Local data bus, and local address bus.3. Local data bus, and local address bus. 4. Machine cycle, processor cycle, and bus cycle.
  • 3. It refers to the number of bits that can be processed or transmitted in parallel, or the number of bits used for single element in a data format. Th titi th t ll difi d b thThe entities that are usually modified by these numbers are: •BusBus •Microprocessor •Software •Operating system
  • 4.
  • 5. Opcode operand and addressing modeOpcode, operand, and addressing mode A hi i i i d f d d• A machine instruction is made up of an opcode and one or more operands. • The opcode tells the processor what action top p perform over the following operands. • The methods for specify the operand(s) for a machine i t ti ll d dd i dinstruction are called addressing modes.
  • 6.
  • 7.
  • 8. Bus A bus is a collection of wires through which data is transmitted from one part of a computer to thanother. According to the type of data transmitted through theg yp g bus, we have: b h b d l d• Data bus: The bus used to carry actual data. •Address bus: The bus transferring information about where the data should goabout where the data should go. •Control bus: The physical connections that carry control information between the CPU and other devices within the computer.
  • 9. According to the location of buses, or what kinds of components they connect, we have:p y , Local bus:Local bus: Another name of system bus, which connects the microprocessor main memory and all kinds of I/Omicroprocessor, main memory, and all kinds of I/O modules. A local bus is also called frontside bus, memory bus, or, y , host bus.
  • 10. Backside bus: A microprocessor bus that connects the CPU to a Level 2 cache. Typically, a backside bus runs at a faster clock speed than the frontside External bus: A bus that connects a computer to peripheral devices.
  • 11.
  • 12.
  • 13.
  • 14. S dSpeeds • System clock There are so many circuits inside a computerThere are so many circuits inside a computer. To perform a specific action, it is necessary forp p y some sort of synchronization to occur so that different parts function and cooperate as expected. The”conductor” of the PC is the system clock, which brings synchronizationwhich brings synchronization. A clock is just a signal that alternates between zeroj g and one, back and forth.
  • 15. The pulses generated by the clockThe pulses generated by the clock
  • 16. Memory Access time: also known as response time or latency refers to how quickly the memory can respond to a read or write trequest. •Memory cycle:Memory cycle: refers to the minimum period between two successive requests.q For various reasons the time separating two successive i l 0 i i hrequests is not always 0, i.e a memory with a response time of 80 ns cannot satisfy a request every 80 ns.
  • 17. Machine cycle:Machine cycle: also called instruction cycle, the four steps which the CPU i t f h hi lCPU carries out for each machine language instruction: fetch, decode, execute, and store.
  • 18. CachesCaches Level 1 (Primary) Cache: •The fastest memory on the PC.y •It is in fact, built directly into the processor itself. •This cache is very small, generally from 8 KB to 64 KB, but it is extremely fast; it runs at the same speed as the processor. If the processor requests information and can find it in the level 1 cache, that is the best case, because thethe level 1 cache, that is the best case, because the information is there immediately and the system does not have to wait.
  • 19. Level 2 (Secondary) Cache:Level 2 (Secondary) Cache: The level 2 cache is a secondary cache to the level 1 h d i l d li htl lcache, and is larger and slightly slower.
  • 20. Name some OS’sName some OS s • Linux • PalmOS • Unix • Windows • TinyOS • WinCEW dows • Multics • BSDUnix W C • Spring • 2KBSDUnix • Mac/Tiger • Vista 2K • …. • Vista
  • 21. MulticoreMulticore • A multicore computer, also known as a chipA multicore computer, also known as a chip multiprocessor , combines two or more processors (called cores) on a single piece ofp ocesso s (ca ed co es) o a s g e p ece o silicon (called a die). • Typically, each core consists of all of the t f i d d t hcomponents of an independent processor, such as registers, ALU, pipeline hardware, and control nit pl s L1 instr ction and data cachescontrol unit, plus L1 instruction and data caches.
  • 22. • Virtualization – enables a single PC or server to simultaneously run l i l i l i l i fmultiple operating systems or multiple sessions of a single OS – a machine can host numerous applications, includinga machine can host numerous applications, including those that run on different operating systems, on a single platform h t ti t t b– host operating system can support a number of virtual machines (VM) – each has the characteristics of a particular OSeach has the characteristics of a particular OS
  • 24. Process perspective:Process perspective: • the machine on which it executes consists of the virtual memory space assigned to the process • the processor registers it may use • the user-level machine instructions it may execute • OS system calls it may invoke for I/O • ABI defines the machine as seen by a process Application perspective:Application perspective: • machine characteristics are specified by high-level language capabilities and OS system library calls • API defines the machine for an application Application perspective:Application perspective: • processes share a file system and other I/O resources OS perspective:OS perspective: • system allocates real memory and I/O resources to the processes • ISA provides the interface between the system and machine
  • 25. Process and System Virtual MachinesProcess and System Virtual MachinesProcess and System Virtual MachinesProcess and System Virtual Machines
  • 26. Process and System Virtual MachinesProcess and System Virtual MachinesProcess and System Virtual MachinesProcess and System Virtual Machines
  • 27.
  • 28. •What is the meaning of installation? (Installation program)(Installation program) •Why we are using installation? Wh t f i ll i ?•What are types of installations? •What are Device drivers? •List programs in system tools in Win7?•List programs in system tools in Win7?
  • 30. Major Requirements of an Operating SSystem • Interleave the execution of several jobs toInterleave the execution of several jobs to maximize processor utilization while providing reasonable response timep ov d g easonable espo se t e All t t• Allocate resources to processes • Support interjobs communication and user creation of processes (jobs)
  • 31. Process • Textbook uses the terms job and process almost interchangeablyinterchangeably • Process a program in execution;• Process – a program in execution; process execution must progress in sequential fashion • A process includes: – program counterprogram counter – stack – data section
  • 32. It is program switches theswitches the processor from one process to another
  • 34. Two-State Process ModelTwo State Process Model • Process may be in one of two statesProcess may be in one of two states – Running – Not-runningNot running
  • 36. Process CreationProcess Creation • When a new process, OS builds the data structures that are used to manage the processstructures that are used to manage the process. • Reasons for process creation – Submission of a batch job – User logs on – Created to provide a service such as printingp p g – Process creates another process (spawning) [parent – child]
  • 37. Process TerminationProcess Termination • Any computer system must provide a meansAny computer system must provide a means for a process to indicate its completion. • Batch job issues Halt instruction (call for• Batch job issues Halt instruction (call for termination) U l ff• User logs off • Quit an application • Error and fault conditions
  • 38. Reasons for Process TerminationReasons for Process Termination • Normal completion Ti li it d d• Time limit exceeded • Memory unavailable • Protection error• Protection error – example write to read-only file • Arithmetic errorArithmetic error • When a process finishes, the operating system will free the memory space it occupies andy p p remove the data structures it allocated to manage the process.
  • 39. A fi t t d lA five-state model
  • 40. • As a process executes, it changes statep , g running: Instructions are being executed new: The process is being created waiting: The process is waiting for some event to occur ready: The process is waiting to be assigned to a process terminated: The process has finished executionterminated: The process has finished execution
  • 41. • RunningRunning • Ready Bl k d Not running • Blocked • New • Exit
  • 42.
  • 43.
  • 44. Using Two QueuesUsing Two Queues
  • 45.
  • 46. Process swapping and Suspended PProcesses • Processor is faster than I/O so all processesProcessor is faster than I/O so all processes could be waiting for I/O • Swap these processes to disk to free up moreSwap these processes to disk to free up more memory • Blocked state becomes suspend state whenBlocked state becomes suspend state when swapped to disk • Two new statesTwo new states – Blocked, suspend (in secondary memory) – Ready, suspend in (secondary memory)y, p ( y y)
  • 47. One Suspend StateOne Suspend State
  • 48. Two Suspend StatesTwo Suspend States