SlideShare une entreprise Scribd logo
1  sur  47
Group Member:
Alauddin Maulana Hirzan B031310530
Muhammad Syaifur Rohman B031310522
Aditya Pradana B031310
Wendy Sarasjati B031310528
Soraya Arum B031310
BITS 1213 Operating System
Main Menu
- Process
- Thread
- Symmetric Multi Processing
- Microkernel
Process - Intro
A process is the "heaviest" unit of kernel scheduling. ProcessResources include memory, file handles, sockets, device han
Process – Cont'd
Process:- Also called a task- Execution of an individual program- Can be traced list the sequence of instructions that executeProcess, on the other hand, includes:- Current value of Program Counter (PC)- Contents of the processors registers- Value of the variables- The process stack (SP) which typically contains temporary data s- A data section that contains global variables.
Identifier
State
Priority
Program Counter
Memory Pointer
Context Data
I/O Status Info
Accounting Info
…....
Process – Cont'd
While program is executing, this process can be c
Stored in data structure known as Process Cont
PCB is created for each process
The creation and management of PCB is done by
PROCESS STATES
lThe Creation and Termination of ProcesseslA Two-State Process ModellA Five-State ModellSuspended Processes
Process – The Creation
Submission of a batch jobUser logs onCreated to provide a service such as printingProcess (parents process) creates another procCalled as process spawning
Process – The Termination
Batch job issues Halt (OS service call for terUser logs offQuit an applicationError and fault conditions
Process – The Two State Model
l- Process may be in one of two stateslRunninglNot-running
The Two State Model – Cont'd
Dispatcher cannot just select the process that has been in th
Solution: split Not Running into two states:Ready – prepare to execute when given opportunityBlocked/Waiting – process cannot execute until some event o
Suspended Process
Processor is faster than I/O so all processes could be waitingSwap these processes to disk to free up more memoryBlocked state becomes suspend state when swapped to diskTwo new statesBlocked, suspend: blocked processes which have been swapReady, suspend: ready processes which have been swapped
Suspending Reason
Process Control – Modes of Execution
User mode
Less-privileged mode
User programs typically execute in this mode
System mode, control mode, or kernel mode
More-privileged mode
Kernel of the operating system
Process Control – Process Creation
Assign a unique process identifier
Allocate space for the process
Initialize process control block
Set up appropriate linkages
Ex: add new process to linked list used for scheduling queue
Create or expand other data structures
Ex: maintain an accounting file
Process Control – Switch a Process
Supervisor call
Requests I/O operation such as file open
Trap
error occurred from last instruction
may cause process to be moved to Exit state
Interrupt
event that is external to the running process such as completion of I/O
Type of Interrupts
Clock interrupt
process has executed for the maximum allowable time slice
I/O interrupt
I/O action has occurred
Memory fault
memory address is in virtual memory so it must be brought into main memory
Execution of the Operating System
Non-process Kernel (old)
execute kernel outside of any process
operating system code is executed as a separate entity that opera
Execution Within User Processes
operating system software within context of a user process
process executes in privileged mode when executing operating sy
Process-Based Operating System
major kernel functions are separate processes
Useful in multi-processor or multi-computer environment
Single Thread VS Multi Thread
Single Thread
Single threaded means there is only one thread within the processSingle threaded results in system idle time and user frustration. Fo
Multi Thread
In a multithreaded environment, a process is definedA virtual address space that holds the process image. Protected access to processors, other processes (for inter-p
Thread – Cont'd
Sometime there is an application that needed to run several task in
Thread - Introduction
“One example of multithreading is when you are downloading a viYou can imagine multitasking as something that allows processesWhen multiple threads are running concurrently, this is known as m
How Multi Thread Works
The multithreading can help because usually a normal HTTP executionSo in practice when you have 1 request in which you need to fetch an i
Thread – Cont'd
Sometime there is an application that needed to run several task in
How Multi Thread Works
The multithreading can help because usually a normal HTTP executionSo in practice when you have 1 request in which you need to fetch an i
Type of Multi Threading
Many To One
In the many-to-one model, many u
Thread management is handled b
However, if a blocking system cal
Because a single kernel thread ca
Type of Multi Threading
One to One
The one-to-one model creates a separate kernel thread to handle each
One-to-one model overcomes the problems listed above involving block
Linux and Windows from 95 to XP implement the one-to-one model for
Type of Multi Threading
Many to Many
The many-to-many model multiplexes any number of user threads onto a
Users have no restrictions on the number of threads created.
Blocking kernel system calls do not block the entire process.
Processes can be split across multiple processors.
Advantages
a. Responsive . Interactive applications to remain responsive even though theb . Resource sharing . Threads share memory and resources with other threadc . Economical . Making a process requires allocating need memory and resoud. Utilization of multiprocessor architectures . Advantage of multithreading can
Disadvantage
a. Kernel threads are generally slower to create and m
b. Transfer of control from one thread to another within
Symmetric Multi Processing
Symmetric Multiprocessing is a computer architecture of multiproc
Unlike asymmetric processing, any idle processor can be assigned
Symmetric Multi Processing Cont'd
Symmetric multiprocessing systems are tightly coupled multi
Symmetric Multi Processing Cont'd
How SMP Works
In a symmetric multiprocessing environment, the CPU's share the same memo
Programs running on symmetric multiprocessing systems may experience a p
The effect in most applications is not so much a performance increase as the
How SMP Works Cont'd
Symmetric multiprocessing systems allow any processor to work o
Advantages
Symmetric multiprocessing is one of the cheapest ways to improve hardware performance. This
Symmetric multiprocessing is relatively easy to implement.
In situations where more than one program executes at the same time, a symmetric multiproces
Disadvantages
On personal computers, symmetric multiprocessing is less useful for applications that have not
It is useless if the system rarely runs more than one process at a time.
Microkernel - Introduction
Kernel is a computer's core program that manages I/O requests from so
Type of Kernel
Monolithic Kernels
Microkernel
Hybrid
Exokernel
Type of Kernel
Monolithic Kernels
Microkernel
Hybrid
Exokernel
Microkernel Cont'd
Microkernel is the near-minimum amount of software that can provide the mechanis
A microkernel that is designed for a specific platform or device is only ever going to h
Microkernel Cont'd
Microkernel is the near-minimum amount of software that can provide the mechanis
A microkernel that is designed for a specific platform or device is only ever going to h
Advantages
Service separation has the advantage that if one service (called a server) fails others can still w
Only that driver need to be restarted rather than having the entire system die. This means more
Different services are built into special modules which can be loaded or unloaded when needed
Message passing allows independent communication and allows extensibility
The fact that there is no need to reboot the kernel implies rapid test and development.
Easy and faster integration with 3d party modules.
Disadvantages
Memory foot print is large
Potential performance loss (more software interfaces due to
Message passing bugs are not easy to fix
Process management is complex
Microkernel Diagram
Microkernel Diagram Cont'd
References
lhttp://en.wikipedia.org/wiki/Thread_(computing)
lhttp://ashishkhandelwal.arkutil.com
lhttp://www.cs.uic.edu/~jbell/CourseNotes/OperatingSystems/4_Threads.html
lhttp://www.slideshare.net/sartakov/01-intro1-14682045
lhttp://beckellroom.blogspot.com/2009/01/pengertian-tentang-kernel-kernel-adalah.html
lhttp://www.8bitavenue.com/2012/11/microkernel-vs-monolithic-os-architectures/
lhttp://en.wikipedia.org/wiki/Kernel_(computing)#Monolithic_kernels
lhttp://en.wikipedia.org/wiki/File:OS-structure.svg

Contenu connexe

Tendances

Advanced Operating System- Introduction
Advanced Operating System- IntroductionAdvanced Operating System- Introduction
Advanced Operating System- IntroductionDebasis Das
 
System programs in o.s. for bca and bscit students by hardik nathani
System programs in o.s. for bca and bscit students by hardik nathaniSystem programs in o.s. for bca and bscit students by hardik nathani
System programs in o.s. for bca and bscit students by hardik nathaniHardik Nathani
 
Processes and Processors in Distributed Systems
Processes and Processors in Distributed SystemsProcesses and Processors in Distributed Systems
Processes and Processors in Distributed SystemsDr Sandeep Kumar Poonia
 
Ch1: Operating System- Introduction
Ch1: Operating System- IntroductionCh1: Operating System- Introduction
Ch1: Operating System- IntroductionAhmar Hashmi
 
CS9222 ADVANCED OPERATING SYSTEMS
CS9222 ADVANCED OPERATING SYSTEMSCS9222 ADVANCED OPERATING SYSTEMS
CS9222 ADVANCED OPERATING SYSTEMSKathirvel Ayyaswamy
 
Lecture 1 introduction to operating systems
Lecture 1  introduction to operating systemsLecture 1  introduction to operating systems
Lecture 1 introduction to operating systemsPradeep Kumar TS
 
Lecture 3,4 operating systems
Lecture 3,4   operating systemsLecture 3,4   operating systems
Lecture 3,4 operating systemsPradeep Kumar TS
 
Multi processor scheduling
Multi  processor schedulingMulti  processor scheduling
Multi processor schedulingShashank Kapoor
 
Processor Allocation (Distributed computing)
Processor Allocation (Distributed computing)Processor Allocation (Distributed computing)
Processor Allocation (Distributed computing)Sri Prasanna
 
Processes Control Block (Operating System)
Processes Control Block (Operating System)Processes Control Block (Operating System)
Processes Control Block (Operating System)Imdad Ullah
 

Tendances (20)

Cs8493 unit 5
Cs8493 unit 5Cs8493 unit 5
Cs8493 unit 5
 
Advanced Operating System- Introduction
Advanced Operating System- IntroductionAdvanced Operating System- Introduction
Advanced Operating System- Introduction
 
1 introduction
1 introduction1 introduction
1 introduction
 
System programs in o.s. for bca and bscit students by hardik nathani
System programs in o.s. for bca and bscit students by hardik nathaniSystem programs in o.s. for bca and bscit students by hardik nathani
System programs in o.s. for bca and bscit students by hardik nathani
 
Processes and Processors in Distributed Systems
Processes and Processors in Distributed SystemsProcesses and Processors in Distributed Systems
Processes and Processors in Distributed Systems
 
Ch1: Operating System- Introduction
Ch1: Operating System- IntroductionCh1: Operating System- Introduction
Ch1: Operating System- Introduction
 
CS9222 ADVANCED OPERATING SYSTEMS
CS9222 ADVANCED OPERATING SYSTEMSCS9222 ADVANCED OPERATING SYSTEMS
CS9222 ADVANCED OPERATING SYSTEMS
 
Distributed Operating System_1
Distributed Operating System_1Distributed Operating System_1
Distributed Operating System_1
 
Operating Systems
Operating SystemsOperating Systems
Operating Systems
 
Complete Operating System notes
Complete Operating System notesComplete Operating System notes
Complete Operating System notes
 
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
 
Basic os-concepts
Basic os-conceptsBasic os-concepts
Basic os-concepts
 
Lecture 1 introduction to operating systems
Lecture 1  introduction to operating systemsLecture 1  introduction to operating systems
Lecture 1 introduction to operating systems
 
Lecture 3,4 operating systems
Lecture 3,4   operating systemsLecture 3,4   operating systems
Lecture 3,4 operating systems
 
Multi processor scheduling
Multi  processor schedulingMulti  processor scheduling
Multi processor scheduling
 
Processor Allocation (Distributed computing)
Processor Allocation (Distributed computing)Processor Allocation (Distributed computing)
Processor Allocation (Distributed computing)
 
OS_Ch3
OS_Ch3OS_Ch3
OS_Ch3
 
Processes Control Block (Operating System)
Processes Control Block (Operating System)Processes Control Block (Operating System)
Processes Control Block (Operating System)
 
Windows kernel
Windows kernelWindows kernel
Windows kernel
 

Similaire à Os

Process, Threads, Symmetric Multiprocessing and Microkernels in Operating System
Process, Threads, Symmetric Multiprocessing and Microkernels in Operating SystemProcess, Threads, Symmetric Multiprocessing and Microkernels in Operating System
Process, Threads, Symmetric Multiprocessing and Microkernels in Operating SystemLieYah Daliah
 
EMBEDDED OS
EMBEDDED OSEMBEDDED OS
EMBEDDED OSAJAL A J
 
Chapter -2 operating system presentation
Chapter -2 operating system presentationChapter -2 operating system presentation
Chapter -2 operating system presentationchnrketan
 
Process Management Operating Systems .pptx
Process Management        Operating Systems .pptxProcess Management        Operating Systems .pptx
Process Management Operating Systems .pptxSAIKRISHNADURVASULA2
 
Basics of Operating System
Basics of Operating SystemBasics of Operating System
Basics of Operating SystemSoumit Ghosh
 
Unit 1os processes and threads
Unit 1os processes and threadsUnit 1os processes and threads
Unit 1os processes and threadsdonny101
 
Unit 2 part 2(Process)
Unit 2 part 2(Process)Unit 2 part 2(Process)
Unit 2 part 2(Process)WajeehaBaig
 
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).pptxkrishnajoshi70
 
LM9 - OPERATIONS, SCHEDULING, Inter process xommuncation
LM9 - OPERATIONS, SCHEDULING, Inter process xommuncationLM9 - OPERATIONS, SCHEDULING, Inter process xommuncation
LM9 - OPERATIONS, SCHEDULING, Inter process xommuncationMani Deepak Choudhry
 
Symmetric multiprocessing and Microkernel
Symmetric multiprocessing and MicrokernelSymmetric multiprocessing and Microkernel
Symmetric multiprocessing and MicrokernelManoraj Pannerselum
 
Lec+3-Introduction-to-Distributed-Systems.pdf
Lec+3-Introduction-to-Distributed-Systems.pdfLec+3-Introduction-to-Distributed-Systems.pdf
Lec+3-Introduction-to-Distributed-Systems.pdfsamaghorab
 
OPERATING SYSTEM - SHORT NOTES
OPERATING SYSTEM - SHORT NOTESOPERATING SYSTEM - SHORT NOTES
OPERATING SYSTEM - SHORT NOTESsuthi
 
Operating System Concepts Presentation
Operating System Concepts PresentationOperating System Concepts Presentation
Operating System Concepts PresentationNitish Jadia
 
operating system for computer engineering ch3.ppt
operating system for computer engineering ch3.pptoperating system for computer engineering ch3.ppt
operating system for computer engineering ch3.pptgezaegebre1
 

Similaire à Os (20)

Process, Threads, Symmetric Multiprocessing and Microkernels in Operating System
Process, Threads, Symmetric Multiprocessing and Microkernels in Operating SystemProcess, Threads, Symmetric Multiprocessing and Microkernels in Operating System
Process, Threads, Symmetric Multiprocessing and Microkernels in Operating System
 
EMBEDDED OS
EMBEDDED OSEMBEDDED OS
EMBEDDED OS
 
Chapter -2 operating system presentation
Chapter -2 operating system presentationChapter -2 operating system presentation
Chapter -2 operating system presentation
 
Os
OsOs
Os
 
Os
OsOs
Os
 
Process Management Operating Systems .pptx
Process Management        Operating Systems .pptxProcess Management        Operating Systems .pptx
Process Management Operating Systems .pptx
 
Basics of Operating System
Basics of Operating SystemBasics of Operating System
Basics of Operating System
 
Operating system
Operating systemOperating system
Operating system
 
Topic 4- processes.pptx
Topic 4- processes.pptxTopic 4- processes.pptx
Topic 4- processes.pptx
 
Unit 1os processes and threads
Unit 1os processes and threadsUnit 1os processes and threads
Unit 1os processes and threads
 
Unit 2 part 2(Process)
Unit 2 part 2(Process)Unit 2 part 2(Process)
Unit 2 part 2(Process)
 
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
 
LM9 - OPERATIONS, SCHEDULING, Inter process xommuncation
LM9 - OPERATIONS, SCHEDULING, Inter process xommuncationLM9 - OPERATIONS, SCHEDULING, Inter process xommuncation
LM9 - OPERATIONS, SCHEDULING, Inter process xommuncation
 
Process Management
Process ManagementProcess Management
Process Management
 
Symmetric multiprocessing and Microkernel
Symmetric multiprocessing and MicrokernelSymmetric multiprocessing and Microkernel
Symmetric multiprocessing and Microkernel
 
Lec+3-Introduction-to-Distributed-Systems.pdf
Lec+3-Introduction-to-Distributed-Systems.pdfLec+3-Introduction-to-Distributed-Systems.pdf
Lec+3-Introduction-to-Distributed-Systems.pdf
 
OPERATING SYSTEM - SHORT NOTES
OPERATING SYSTEM - SHORT NOTESOPERATING SYSTEM - SHORT NOTES
OPERATING SYSTEM - SHORT NOTES
 
Epc 3.ppt
Epc 3.pptEpc 3.ppt
Epc 3.ppt
 
Operating System Concepts Presentation
Operating System Concepts PresentationOperating System Concepts Presentation
Operating System Concepts Presentation
 
operating system for computer engineering ch3.ppt
operating system for computer engineering ch3.pptoperating system for computer engineering ch3.ppt
operating system for computer engineering ch3.ppt
 

Dernier

1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...RKavithamani
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 

Dernier (20)

Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 

Os

  • 1. Group Member: Alauddin Maulana Hirzan B031310530 Muhammad Syaifur Rohman B031310522 Aditya Pradana B031310 Wendy Sarasjati B031310528 Soraya Arum B031310 BITS 1213 Operating System
  • 2. Main Menu - Process - Thread - Symmetric Multi Processing - Microkernel
  • 3. Process - Intro A process is the "heaviest" unit of kernel scheduling. ProcessResources include memory, file handles, sockets, device han
  • 4. Process – Cont'd Process:- Also called a task- Execution of an individual program- Can be traced list the sequence of instructions that executeProcess, on the other hand, includes:- Current value of Program Counter (PC)- Contents of the processors registers- Value of the variables- The process stack (SP) which typically contains temporary data s- A data section that contains global variables.
  • 5. Identifier State Priority Program Counter Memory Pointer Context Data I/O Status Info Accounting Info ….... Process – Cont'd While program is executing, this process can be c Stored in data structure known as Process Cont PCB is created for each process The creation and management of PCB is done by
  • 6. PROCESS STATES lThe Creation and Termination of ProcesseslA Two-State Process ModellA Five-State ModellSuspended Processes
  • 7. Process – The Creation Submission of a batch jobUser logs onCreated to provide a service such as printingProcess (parents process) creates another procCalled as process spawning
  • 8. Process – The Termination Batch job issues Halt (OS service call for terUser logs offQuit an applicationError and fault conditions
  • 9. Process – The Two State Model l- Process may be in one of two stateslRunninglNot-running
  • 10. The Two State Model – Cont'd Dispatcher cannot just select the process that has been in th Solution: split Not Running into two states:Ready – prepare to execute when given opportunityBlocked/Waiting – process cannot execute until some event o
  • 11. Suspended Process Processor is faster than I/O so all processes could be waitingSwap these processes to disk to free up more memoryBlocked state becomes suspend state when swapped to diskTwo new statesBlocked, suspend: blocked processes which have been swapReady, suspend: ready processes which have been swapped
  • 13. Process Control – Modes of Execution User mode Less-privileged mode User programs typically execute in this mode System mode, control mode, or kernel mode More-privileged mode Kernel of the operating system
  • 14. Process Control – Process Creation Assign a unique process identifier Allocate space for the process Initialize process control block Set up appropriate linkages Ex: add new process to linked list used for scheduling queue Create or expand other data structures Ex: maintain an accounting file
  • 15. Process Control – Switch a Process Supervisor call Requests I/O operation such as file open Trap error occurred from last instruction may cause process to be moved to Exit state Interrupt event that is external to the running process such as completion of I/O
  • 16. Type of Interrupts Clock interrupt process has executed for the maximum allowable time slice I/O interrupt I/O action has occurred Memory fault memory address is in virtual memory so it must be brought into main memory
  • 17. Execution of the Operating System Non-process Kernel (old) execute kernel outside of any process operating system code is executed as a separate entity that opera Execution Within User Processes operating system software within context of a user process process executes in privileged mode when executing operating sy Process-Based Operating System major kernel functions are separate processes Useful in multi-processor or multi-computer environment
  • 18. Single Thread VS Multi Thread
  • 19. Single Thread Single threaded means there is only one thread within the processSingle threaded results in system idle time and user frustration. Fo
  • 20. Multi Thread In a multithreaded environment, a process is definedA virtual address space that holds the process image. Protected access to processors, other processes (for inter-p
  • 21. Thread – Cont'd Sometime there is an application that needed to run several task in
  • 22. Thread - Introduction “One example of multithreading is when you are downloading a viYou can imagine multitasking as something that allows processesWhen multiple threads are running concurrently, this is known as m
  • 23. How Multi Thread Works The multithreading can help because usually a normal HTTP executionSo in practice when you have 1 request in which you need to fetch an i
  • 24. Thread – Cont'd Sometime there is an application that needed to run several task in
  • 25. How Multi Thread Works The multithreading can help because usually a normal HTTP executionSo in practice when you have 1 request in which you need to fetch an i
  • 26. Type of Multi Threading Many To One In the many-to-one model, many u Thread management is handled b However, if a blocking system cal Because a single kernel thread ca
  • 27. Type of Multi Threading One to One The one-to-one model creates a separate kernel thread to handle each One-to-one model overcomes the problems listed above involving block Linux and Windows from 95 to XP implement the one-to-one model for
  • 28. Type of Multi Threading Many to Many The many-to-many model multiplexes any number of user threads onto a Users have no restrictions on the number of threads created. Blocking kernel system calls do not block the entire process. Processes can be split across multiple processors.
  • 29. Advantages a. Responsive . Interactive applications to remain responsive even though theb . Resource sharing . Threads share memory and resources with other threadc . Economical . Making a process requires allocating need memory and resoud. Utilization of multiprocessor architectures . Advantage of multithreading can
  • 30. Disadvantage a. Kernel threads are generally slower to create and m b. Transfer of control from one thread to another within
  • 31. Symmetric Multi Processing Symmetric Multiprocessing is a computer architecture of multiproc Unlike asymmetric processing, any idle processor can be assigned
  • 32. Symmetric Multi Processing Cont'd Symmetric multiprocessing systems are tightly coupled multi
  • 34. How SMP Works In a symmetric multiprocessing environment, the CPU's share the same memo Programs running on symmetric multiprocessing systems may experience a p The effect in most applications is not so much a performance increase as the
  • 35. How SMP Works Cont'd Symmetric multiprocessing systems allow any processor to work o
  • 36. Advantages Symmetric multiprocessing is one of the cheapest ways to improve hardware performance. This Symmetric multiprocessing is relatively easy to implement. In situations where more than one program executes at the same time, a symmetric multiproces
  • 37. Disadvantages On personal computers, symmetric multiprocessing is less useful for applications that have not It is useless if the system rarely runs more than one process at a time.
  • 38. Microkernel - Introduction Kernel is a computer's core program that manages I/O requests from so
  • 39. Type of Kernel Monolithic Kernels Microkernel Hybrid Exokernel
  • 40. Type of Kernel Monolithic Kernels Microkernel Hybrid Exokernel
  • 41. Microkernel Cont'd Microkernel is the near-minimum amount of software that can provide the mechanis A microkernel that is designed for a specific platform or device is only ever going to h
  • 42. Microkernel Cont'd Microkernel is the near-minimum amount of software that can provide the mechanis A microkernel that is designed for a specific platform or device is only ever going to h
  • 43. Advantages Service separation has the advantage that if one service (called a server) fails others can still w Only that driver need to be restarted rather than having the entire system die. This means more Different services are built into special modules which can be loaded or unloaded when needed Message passing allows independent communication and allows extensibility The fact that there is no need to reboot the kernel implies rapid test and development. Easy and faster integration with 3d party modules.
  • 44. Disadvantages Memory foot print is large Potential performance loss (more software interfaces due to Message passing bugs are not easy to fix Process management is complex