SlideShare a Scribd company logo
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

More Related Content

PDF
CS9222 Advanced Operating System
PDF
Cs8493 unit 4
PPT
PDF
CS6401 Operating Systems
PPTX
Operating system interview question
PDF
Unit 4
PDF
CS9222 ADVANCED OPERATING SYSTEMS
PDF
Cs8493 unit 1
CS9222 Advanced Operating System
Cs8493 unit 4
CS6401 Operating Systems
Operating system interview question
Unit 4
CS9222 ADVANCED OPERATING SYSTEMS
Cs8493 unit 1

What's hot (20)

PDF
Cs8493 unit 5
PPT
Advanced Operating System- Introduction
PDF
1 introduction
PPT
System programs in o.s. for bca and bscit students by hardik nathani
PDF
Processes and Processors in Distributed Systems
PPT
Ch1: Operating System- Introduction
PDF
CS9222 ADVANCED OPERATING SYSTEMS
PDF
Distributed Operating System_1
PPTX
Operating Systems
DOCX
Complete Operating System notes
PDF
Cs8493 unit 2
PDF
CS6401 OPERATING SYSTEMS Unit 2
PPT
Basic os-concepts
PPTX
Lecture 1 introduction to operating systems
PPTX
Lecture 3,4 operating systems
PPTX
Multi processor scheduling
PPT
Processor Allocation (Distributed computing)
PPT
Processes Control Block (Operating System)
PPT
Windows kernel
Cs8493 unit 5
Advanced Operating System- Introduction
1 introduction
System programs in o.s. for bca and bscit students by hardik nathani
Processes and Processors in Distributed Systems
Ch1: Operating System- Introduction
CS9222 ADVANCED OPERATING SYSTEMS
Distributed Operating System_1
Operating Systems
Complete Operating System notes
Cs8493 unit 2
CS6401 OPERATING SYSTEMS Unit 2
Basic os-concepts
Lecture 1 introduction to operating systems
Lecture 3,4 operating systems
Multi processor scheduling
Processor Allocation (Distributed computing)
Processes Control Block (Operating System)
Windows kernel
Ad

Similar to Os (20)

PPTX
Process, Threads, Symmetric Multiprocessing and Microkernels in Operating System
PPT
EMBEDDED OS
PPTX
Chapter -2 operating system presentation
PPTX
Process Management Operating Systems .pptx
PPT
Basics of Operating System
PPTX
OSModule1 important topics in detailed with examples
PPTX
Operating system
PPTX
Topic 4- processes.pptx
PDF
Unit 1os processes and threads
PDF
Unit 2 part 2(Process)
PPTX
operatinndnd jdj jjrg-system-1(1) (1).pptx
PPTX
LM9 - OPERATIONS, SCHEDULING, Inter process xommuncation
PPTX
Process Management
DOC
Symmetric multiprocessing and Microkernel
PDF
Lec+3-Introduction-to-Distributed-Systems.pdf
DOC
OPERATING SYSTEM - SHORT NOTES
PPTX
Epc 3.ppt
PDF
Operating System Concepts Presentation
Process, Threads, Symmetric Multiprocessing and Microkernels in Operating System
EMBEDDED OS
Chapter -2 operating system presentation
Process Management Operating Systems .pptx
Basics of Operating System
OSModule1 important topics in detailed with examples
Operating system
Topic 4- processes.pptx
Unit 1os processes and threads
Unit 2 part 2(Process)
operatinndnd jdj jjrg-system-1(1) (1).pptx
LM9 - OPERATIONS, SCHEDULING, Inter process xommuncation
Process Management
Symmetric multiprocessing and Microkernel
Lec+3-Introduction-to-Distributed-Systems.pdf
OPERATING SYSTEM - SHORT NOTES
Epc 3.ppt
Operating System Concepts Presentation
Ad

Recently uploaded (20)

PDF
Chinmaya Tiranga quiz Grand Finale.pdf
PPTX
History, Philosophy and sociology of education (1).pptx
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PPTX
Orientation - ARALprogram of Deped to the Parents.pptx
PPTX
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
PDF
Updated Idioms and Phrasal Verbs in English subject
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
LNK 2025 (2).pdf MWEHEHEHEHEHEHEHEHEHEHE
PDF
Paper A Mock Exam 9_ Attempt review.pdf.
PDF
Classroom Observation Tools for Teachers
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PPTX
master seminar digital applications in india
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
Practical Manual AGRO-233 Principles and Practices of Natural Farming
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PPTX
Radiologic_Anatomy_of_the_Brachial_plexus [final].pptx
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PPTX
UNIT III MENTAL HEALTH NURSING ASSESSMENT
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
Chinmaya Tiranga quiz Grand Finale.pdf
History, Philosophy and sociology of education (1).pptx
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Orientation - ARALprogram of Deped to the Parents.pptx
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
Updated Idioms and Phrasal Verbs in English subject
2.FourierTransform-ShortQuestionswithAnswers.pdf
LNK 2025 (2).pdf MWEHEHEHEHEHEHEHEHEHEHE
Paper A Mock Exam 9_ Attempt review.pdf.
Classroom Observation Tools for Teachers
Final Presentation General Medicine 03-08-2024.pptx
master seminar digital applications in india
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Practical Manual AGRO-233 Principles and Practices of Natural Farming
Supply Chain Operations Speaking Notes -ICLT Program
Module 4: Burden of Disease Tutorial Slides S2 2025
Radiologic_Anatomy_of_the_Brachial_plexus [final].pptx
Microbial diseases, their pathogenesis and prophylaxis
UNIT III MENTAL HEALTH NURSING ASSESSMENT
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf

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