SlideShare uma empresa Scribd logo
1 de 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

Mais conteúdo relacionado

Mais procurados

Lecture 1 introduction to operating systems
Lecture 1  introduction to operating systemsLecture 1  introduction to operating systems
Lecture 1 introduction to operating systems
Pradeep Kumar TS
 
Lecture 3,4 operating systems
Lecture 3,4   operating systemsLecture 3,4   operating systems
Lecture 3,4 operating systems
Pradeep Kumar TS
 
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
 

Mais procurados (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
 

Semelhante a 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 System
LieYah Daliah
 
Chapter -2 operating system presentation
Chapter -2 operating system presentationChapter -2 operating system presentation
Chapter -2 operating system presentation
chnrketan
 
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
 
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
samaghorab
 
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
gezaegebre1
 

Semelhante a 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
 

Último

Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
ssuserdda66b
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
AnaAcapella
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 

Último (20)

Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 

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