qeweq4qwerqfsadzcwerftqfedswadfrfwerqreqwe
Silberschatz, Galvin and Gagne ©2018
Operating System Concepts – 10th
Edition
Chapter 3: Processes
Outline
• Process Concept
• Process Scheduling
• Operations on Processes
• Interprocess Communication
• IPC in Shared-Memory Systems
• IPC in Message-Passing Systems
• Examples of IPC Systems
• Communication in Client-Server Systems
Objectives
• Identify the separate components of a process and illustrate how
they are represented and scheduled in an operating system.
• Describe how processes are created and terminated in an
operating system, including developing programs using the
appropriate system calls that perform these operations.
• Describe and contrast interprocess communication using shared
memory and message passing.
• Design programs that uses pipes and POSIX shared memory to
perform interprocess communication.
• Describe client-server communication using sockets and remote
procedure calls.
• Design kernel modules that interact with the Linux operating
system.
Process Concept
• An operating system executes a variety of programs that
run as a process.
• Process – a program in execution; process execution
must progress in sequential fashion. No parallel
execution of instructions of a single process
• Multiple parts
• The program code, also called text section
• Current activity including program counter, processor registers
• Stack containing temporary data
• Function parameters, return addresses, local variables
• Data section containing global variables
• Heap containing memory dynamically allocated during run
time
Process Concept (Cont.)
• Program is passive entity stored on disk
(executable file); process is active
• Program becomes process when an executable
file is loaded into memory
• Execution of program started via GUI mouse
clicks, command line entry of its name, etc.
• One program can be several processes
• Consider multiple users executing the same
program
Process in Memory
Memory Layout of a C Program
Process State
• As a process executes, it changes state
• New: The process is being created
• Running: Instructions are being executed
• Waiting: The process is waiting for some event to
occur
• Ready: The process is waiting to be assigned to a
processor
• Terminated: The process has finished execution
Diagram of Process State

More Related Content

PPT
Module-2 presentation.ppt of embedded system
PPT
ch3.ppt
PPTX
Processes
PPTX
Chapter 3 Processes (1)Operating systems.pptx
PPTX
Processes
PDF
Ch3 processes
PPTX
ch3-lect7.pptx
PPTX
ch3.pptx
Module-2 presentation.ppt of embedded system
ch3.ppt
Processes
Chapter 3 Processes (1)Operating systems.pptx
Processes
Ch3 processes
ch3-lect7.pptx
ch3.pptx

Similar to qeweq4qwerqfsadzcwerftqfedswadfrfwerqreqwe (20)

PPT
Chapter 3: Processes
PPTX
14712-l4.pptx
PDF
Ch3OperSys
PDF
OperatingSystemChp3
PPT
ch3_smu.ppt
PPTX
ch3.pptx
PDF
Process
PPT
Chapter 3
PPTX
5 - ch3.pptx
PDF
Unit II - 1 - Operating System Process
PDF
process.pdfzljwiyrouyaeutoaetodtusiokklhh
PPTX
Operating Systems - Process Scheduling Management
PPTX
ADBB_204_Operating_System_10_09_2024[1].pptx
PPTX
Handling Large Data Volumes in Salesforce with Apex
DOCX
CHAPTER READING TASK OPERATING SYSTEM
PPT
Processes
PPT
process management.ppt
PPT
Lecture_Process.ppt
PPT
ch3.ppt
Chapter 3: Processes
14712-l4.pptx
Ch3OperSys
OperatingSystemChp3
ch3_smu.ppt
ch3.pptx
Process
Chapter 3
5 - ch3.pptx
Unit II - 1 - Operating System Process
process.pdfzljwiyrouyaeutoaetodtusiokklhh
Operating Systems - Process Scheduling Management
ADBB_204_Operating_System_10_09_2024[1].pptx
Handling Large Data Volumes in Salesforce with Apex
CHAPTER READING TASK OPERATING SYSTEM
Processes
process management.ppt
Lecture_Process.ppt
ch3.ppt
Ad

Recently uploaded (20)

PDF
Diabetes Mellitus , types , clinical picture, investigation and managment
PPTX
UNIT_2-__LIPIDS[1].pptx.................
PPTX
PLASMA AND ITS CONSTITUENTS 123.pptx
PPTX
4. Diagnosis and treatment planning in RPD.pptx
PDF
Hospital Case Study .architecture design
PPTX
MMW-CHAPTER-1-final.pptx major Elementary Education
PDF
Compact First Student's Book Cambridge Official
PPTX
Cite It Right: A Compact Illustration of APA 7th Edition.pptx
PPTX
BSCE 2 NIGHT (CHAPTER 2) just cases.pptx
PPTX
pharmaceutics-1unit-1-221214121936-550b56aa.pptx
PDF
BSc-Zoology-02Sem-DrVijay-Comparative anatomy of vertebrates.pdf
PPTX
Key-Features-of-the-SHS-Program-v4-Slides (3) PPT2.pptx
PPTX
Neurology of Systemic disease all systems
PPTX
Unit 1 aayurveda and nutrition presentation
PDF
fundamentals-of-heat-and-mass-transfer-6th-edition_incropera.pdf
PPT
hsl powerpoint resource goyloveh feb 07.ppt
PPTX
Diploma pharmaceutics notes..helps diploma students
PPTX
ACFE CERTIFICATION TRAINING ON LAW.pptx
PDF
Lecture on Viruses: Structure, Classification, Replication, Effects on Cells,...
PPTX
IT infrastructure and emerging technologies
Diabetes Mellitus , types , clinical picture, investigation and managment
UNIT_2-__LIPIDS[1].pptx.................
PLASMA AND ITS CONSTITUENTS 123.pptx
4. Diagnosis and treatment planning in RPD.pptx
Hospital Case Study .architecture design
MMW-CHAPTER-1-final.pptx major Elementary Education
Compact First Student's Book Cambridge Official
Cite It Right: A Compact Illustration of APA 7th Edition.pptx
BSCE 2 NIGHT (CHAPTER 2) just cases.pptx
pharmaceutics-1unit-1-221214121936-550b56aa.pptx
BSc-Zoology-02Sem-DrVijay-Comparative anatomy of vertebrates.pdf
Key-Features-of-the-SHS-Program-v4-Slides (3) PPT2.pptx
Neurology of Systemic disease all systems
Unit 1 aayurveda and nutrition presentation
fundamentals-of-heat-and-mass-transfer-6th-edition_incropera.pdf
hsl powerpoint resource goyloveh feb 07.ppt
Diploma pharmaceutics notes..helps diploma students
ACFE CERTIFICATION TRAINING ON LAW.pptx
Lecture on Viruses: Structure, Classification, Replication, Effects on Cells,...
IT infrastructure and emerging technologies
Ad

qeweq4qwerqfsadzcwerftqfedswadfrfwerqreqwe

  • 2. Silberschatz, Galvin and Gagne ©2018 Operating System Concepts – 10th Edition Chapter 3: Processes
  • 3. Outline • Process Concept • Process Scheduling • Operations on Processes • Interprocess Communication • IPC in Shared-Memory Systems • IPC in Message-Passing Systems • Examples of IPC Systems • Communication in Client-Server Systems
  • 4. Objectives • Identify the separate components of a process and illustrate how they are represented and scheduled in an operating system. • Describe how processes are created and terminated in an operating system, including developing programs using the appropriate system calls that perform these operations. • Describe and contrast interprocess communication using shared memory and message passing. • Design programs that uses pipes and POSIX shared memory to perform interprocess communication. • Describe client-server communication using sockets and remote procedure calls. • Design kernel modules that interact with the Linux operating system.
  • 5. Process Concept • An operating system executes a variety of programs that run as a process. • Process – a program in execution; process execution must progress in sequential fashion. No parallel execution of instructions of a single process • Multiple parts • The program code, also called text section • Current activity including program counter, processor registers • Stack containing temporary data • Function parameters, return addresses, local variables • Data section containing global variables • Heap containing memory dynamically allocated during run time
  • 6. Process Concept (Cont.) • Program is passive entity stored on disk (executable file); process is active • Program becomes process when an executable file is loaded into memory • Execution of program started via GUI mouse clicks, command line entry of its name, etc. • One program can be several processes • Consider multiple users executing the same program
  • 8. Memory Layout of a C Program
  • 9. Process State • As a process executes, it changes state • New: The process is being created • Running: Instructions are being executed • Waiting: The process is waiting for some event to occur • Ready: The process is waiting to be assigned to a processor • Terminated: The process has finished execution