CHAPTER 3 - PROCESS CONCEPT

Similar documents
Chapter 3: Processes. Operating System Concepts 9 th Edition

Chapter 3: Process Concept

Chapter 3: Processes. Operating System Concepts 9 th Edition

Chapter 3: Processes

Chapter 3: Processes. Operating System Concepts Essentials 8 th Edition

Chapter 3: Processes

Chapter 3 Processes. Process Concept. Process Concept. Process Concept (Cont.) Process Concept (Cont.) Process Concept (Cont.)

Chapter 3: Process Concept

Chapter 3: Process Concept

Chapter 3: Processes. Operating System Concepts Essentials 2 nd Edition

Chapter 3: Processes. Operating System Concepts 8 th Edition,

Chapter 3: Process Concept

COP 4610: Introduction to Operating Systems (Spring 2014) Chapter 3: Process. Zhi Wang Florida State University

Chapter 3: Processes. Operating System Concepts 8 th Edition,

Process Concept. Chapter 4: Processes. Diagram of Process State. Process State. Process Control Block (PCB) Process Control Block (PCB)

Chapter 4: Processes

Chapter 3: Processes. Operating System Concepts 9 th Edit9on

Chapter 4: Processes. Process Concept

Chapter 3: Processes. Chapter 3: Processes. Process in Memory. Process Concept. Process State. Diagram of Process State

Chapter 3: Processes. Operating System Concepts 8th Edition

Diagram of Process State Process Control Block (PCB)

Part V. Process Management. Sadeghi, Cubaleska RUB Course Operating System Security Memory Management and Protection

Chapter 5: Processes & Process Concept. Objectives. Process Concept Process Scheduling Operations on Processes. Communication in Client-Server Systems

Process. Operating Systems (Fall/Winter 2018) Yajin Zhou ( Zhejiang University

Part Two - Process Management. Chapter 3: Processes

Chapter 3: Process Concept

Chapter 3: Processes. Operating System Concepts 8 th Edition,

Processes. Electrical and Computer Engineering Stephen Kim ECE/IUPUI RTOS & Apps 1

Processes. Operating System Concepts with Java. 4.1 Sana a University, Dr aimen

The Big Picture So Far. Chapter 4: Processes

Chapter 4: Processes. Process Concept

Chapter 3: Processes. Operating System Concepts 8th Edition, modified by Stewart Weiss

Chapter 4: Processes

The Big Picture So Far. Chapter 4: Processes

Chapter 4: Processes

Chapter 3: Processes

Processes and More. CSCI 315 Operating Systems Design Department of Computer Science

COP 4610: Introduction to Operating Systems (Spring 2016) Chapter 3: Process. Zhi Wang Florida State University

Lecture 2 Process Management

Module 4: Processes. Process Concept Process Scheduling Operation on Processes Cooperating Processes Interprocess Communication

Module 4: Processes. Process Concept Process Scheduling Operation on Processes Cooperating Processes Interprocess Communication

Chapter 4: Processes. Process Concept. Process State

Process Concept Process Scheduling Operations On Process Inter-Process Communication Communication in Client-Server Systems

CS370 Operating Systems

Chapter 3: Process-Concept. Operating System Concepts 8 th Edition,

OPERATING SYSTEMS. UNIT II Sections A, B & D. An operating system executes a variety of programs:

PROCESS MANAGEMENT. Operating Systems 2015 Spring by Euiseong Seo

Operating System Design

Process. Program Vs. process. During execution, the process may be in one of the following states

Chapter 3: Processes. Operating System Concepts 8th Edition,

Processes. CSE 2431: Introduction to Operating Systems Reading: Chap. 3, [OSC]

CS307 Operating Systems Processes

Processes. Process Concept. The Process. The Process (Cont.) Process Control Block (PCB) Process State

CSC 539: Operating Systems Structure and Design. Spring 2006

Course: Operating Systems Instructor: M Umair. M Umair

Process a program in execution; process execution must progress in sequential fashion. Operating Systems

CS420: Operating Systems. Interprocess Communication

Processes. CS 475, Spring 2018 Concurrent & Distributed Systems

Outline. Interprocess Communication. Interprocess Communication. Communication Models: Message Passing and shared Memory.

Process Concept Process in Memory Process State new running waiting ready terminated Diagram of Process State

Processes. Operating System Concepts 8 th Edition

Processes and Threads

Roadmap. Tevfik Ko!ar. CSC Operating Systems Fall Lecture - III Processes. Louisiana State University. Processes. September 1 st, 2009

! The Process Control Block (PCB) " is included in the context,

CHAPTER 2: PROCESS MANAGEMENT

ICS Principles of Operating Systems

Process Concept. Minsoo Ryu. Real-Time Computing and Communications Lab. Hanyang University.

CS370 Operating Systems

TDIU25: Operating Systems II. Processes, Threads and Scheduling

Chapter 3: Processes

Prepared by Prof. Hui Jiang Process. Prof. Hui Jiang Dept of Electrical Engineering and Computer Science, York University

Process. Prepared by Prof. Hui Jiang Dept. of EECS, York Univ. 1. Process in Memory (I) PROCESS. Process. How OS manages CPU usage? No.

What Is A Process? Process States. Process Concept. Process Control Block (PCB) Process State Transition Diagram 9/6/2013. Process Fundamentals

Operating System Concepts Ch. 3: Processes

Lecture 5: Process Description and Control Multithreading Basics in Interprocess communication Introduction to multiprocessors

Notice: This set of slides is based on the notes by Professor Perrone of Bucknell and the textbook authors Silberschatz, Galvin, and Gagne

Outlook. Process Concept Process Scheduling Operations on Processes. IPC Examples

Ricardo Rocha. Department of Computer Science Faculty of Sciences University of Porto

2. PROCESS. Operating System Concepts with Java 8th Edition Silberschatz, Galvin and Gagn

Agenda Process Concept Process Scheduling Operations on Processes Interprocess Communication 3.2

CSI Module 2: Processes

Operating Systems. Figure: Process States. 1 P a g e

Roadmap. Tevfik Ko!ar. CSC Operating Systems Spring Lecture - III Processes. Louisiana State University. Virtual Machines Processes

UNIT - II PROCESS MANAGEMENT

Killing Zombies, Working, Sleeping, and Spawning Children

Page 1. Analogy: Problems: Operating Systems Lecture 7. Operating Systems Lecture 7

Process Concepts 8/21/2014. CS341: Operating System. Scheduling: Theoretical Analysis

CSCE 313 Introduction to Computer Systems. Instructor: Dezhen Song

CSCE 313: Intro to Computer Systems

CPSC 341 OS & Networks. Processes. Dr. Yingwu Zhu

Processes. Process Concept

Processes COMPSCI 386

Chap 4, 5: Process. Dongkun Shin, SKKU

Exercise (could be a quiz) Solution. Concurrent Programming. Roadmap. Tevfik Koşar. CSE 421/521 - Operating Systems Fall Lecture - IV Threads

CS 471 Operating Systems. Yue Cheng. George Mason University Fall 2017

Processes. Process Scheduling, Process Synchronization, and Deadlock will be discussed further in Chapters 5, 6, and 7, respectively.

Process. Heechul Yun. Disclaimer: some slides are adopted from the book authors slides with permission

Interprocess Communication

2/14/2012. Using a layered approach, the operating system is divided into N levels or layers. Also view as a stack of services

CS Lecture 2! Processes! George Mason University! Fall 2010!

Transcription:

CHAPTER 3 - PROCESS CONCEPT 1

OBJECTIVES Introduce a process a program in execution basis of all computation Describe features of processes: scheduling, creation, termination, communication Explore interprocess communication using shared memory and message passing Describe communication in client-server systems

PROCESS CONCEPT 3. 12

THE PROCESS Batch system > jobs Time-shared systems > user programs or tasks Textbook: uses job and process interchangeably Process > a program in execution process execution must progress in sequential fashion

THE PROCESS - 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 3. 2

PROGRAM VS PROCESS Program is passive entity stored on disk (executable file), process is active Program becomes process when executable file loaded into memory Execution starts by GUI mouse clicks, command line entry of its name, etc One program can be several processes Consider multiple users executing the same program 3. 3

PROCESS IN MEMORY 3. 4

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 3. 5

DIAGRAM OF PROCESS STATE 3. 6

PROCESS CONTROL BLOCK Information associated with each process 3. 7

PROCESS STATE Process state: running, waiting, etc Program counter: location of instruction to next execute CPU registers: contents of all process-centric registers CPU scheduling info: priorities, scheduling queue pointers Memory-management info: memory allocated to process Accounting info: CPU used, clock time elapsed since start, time limits I/O status info: I/O devices allocated to process

CPU SWITCH FROM PROCESS TO PROCESS 3. 89

THREADS So far, process has a single thread of execution Consider having multiple program counters per process Multiple locations can execute at once Multiple threads of control threads Must then have storage for thread details, multiple program counters in PCB 3. 10

PROCESS REPRESENTATION Process Representation in Linux Represented by the C structure task_struct 3. 11

PROCESS REPRESENTATION IN LINUX task_struct pid_t pid; /* process identifier */ long state; /* state of the process */ unsigned int time slice /* scheduling information */ struct task_struct *parent; /* this process s parent */ struct list_head children; /* this process s children */ struct files_struct *files; /* list of open files */ struct mm_struct *mm; /* address space of this process */ 3. 12

PROCESS SCHEDULING 34. 13. 1

PROCESS SCHEDULING Maximize CPU use, quickly switch processes onto CPU for time sharing Process scheduler selects among available processes for next execution on CPU Maintains scheduling queues of processes

SCHEDULING QUEUS Job queue set of all processes in the system Ready queue set of all processes residing in main memory, ready and waiting to execute Device queues set of processes waiting for an I/O device Processes migrate among the various queues 4. 2

SCHEDULING QUEUS 4. 3

SCHEDULING QUEUES Queuing diagram represents queues, resources, flows

SCHEDULERS Long-term scheduler (or job scheduler) > selects which processes should be brought into the ready queue Short-term scheduler (or CPU scheduler) > selects which process should be executed next and allocates CPU Sometimes the only scheduler in a system 4. 45

SCHEDULERS Short-term scheduler is invoked very frequently (milliseconds) must be fast Long-term scheduler is invoked very infrequently (seconds, minutes) may be slow The long-term scheduler controls the degree of multiprogramming 4. 6

SCHEDULERS Processes can be described as either: I/O-bound process spends more time doing I/O than computations, many short CPU bursts CPU-bound process spends more time doing computations; few very long CPU bursts Long-term scheduler strives for good process mix 4. 7

MEDIUM TERM SCHEDULING Medium-term scheduler can be added if degree of multiple programming needs to decrease Remove process from memory, store on disk, bring back in from disk to continue execution: swapping 4. 89

MEDIUM TERM SCHEDULING

MULTITASKING IN MOBILE SYSTEMS Some systems / early systems allow only one process to run, others suspended 4. 10 11

IOS Due to screen real estate, user interface limits ios provides for a Single foreground process- controlled via user interface Multiple background processes in memory, running, but not on the display, and with limits Limits include single, short task, receiving notification of events, specific long-running tasks like audio playback

ANDROID Android runs foreground and background, with fewer limits Background process uses a service to perform tasks Service can keep running even if background process is suspended Service has no user interface, small memory use 4. 12

CONTEXT SWITCH When CPU switches to another process, the system must save the state of the old process and load the saved state for the new process via a context switch Context of a process represented in the PCB 4. 13 14

CONTEXT SWITCH Context-switch time is overhead; the system does no useful work while switching The more complex the OS and the PCB longer the context switch Time dependent on hardware support Some hardware provides multiple sets of registers per CPU multiple contexts loaded at once

OPERATIONS ON PROCESSES 45. 15. 1

OPERATIONS ON PROCESSES System must provide mechanisms for process creation, termination, and so on 5. 2

PROCESS CREATION Parent process create children processes, which, in turn create other processes, forming a tree of processes Generally, process identified and managed via a process identifier (pid) 5. 3

RESOURCE SHARING OPTIONS Parent and children share all resources Children share subset of parent s resources Parent and child share no resources 5. 4

EXECUTION OPTIONS Parent and children execute concurrently Parent waits until children terminate 5. 5

ADDRESS SPACE Child duplicate of parent Child has a program loaded into it 5. 6

UNIX EXAMPLES fork()system call creates new process exec()system call used after a fork()to replace the process memory space with a new program

A TREE OF PROCESSES IN LINUX 5. 7

C PROGRAM FORKING SEPARATE PROCESS # i n c l u d e < s y s / t y p e s. h > # i n c l u d e < s t d i o. h > # i n c l u d e < u n i s t d. h > i n t m a i n ( ) { p i d t p i d ; p i d = f o r k ( ) ; / * f o r k a c h i l d p r o c e s s * / i f ( p i d < 0 ) { / * e r r o r o c c u r r e d * / f p r i n t f ( s t d e r r, " F o r k F a i l e d " ) ; r e t u r n 1 ; } e l s e i f ( p i d = = 0 ) { / * c h i l d p r o c e s s * / e x e c l p ( " / b i n / l s ", " l s ", N U L L ) ; } e l s e { / * p a r e n t p r o c e s s * / w a i t ( N U L L ) ; / * p a r e n t w i l l w a i t f o r c h i l d t o c o m p l e t e * / p r i n t f ( " C h i l d C o m p l e t e " ) ; } } 5. 8

CREATING - WINDOWS API # i n c l u d e < s t d i o. h > # i n c l u d e < w i n d o w s. h > i n t m a i n ( V O I D ) { S T A R T U P I N F O s i ; P R O C E S S _ I N F O R M A T I O N p i ; Z e r o M e m o r y ( & s i, s i z e o f ( s i ) ) ; / * a l l o c a t e m e m o r y * / s i. c b = s i z e o f ( s i ) ; Z e r o M e m o r y ( & p i, s i z e o f ( p i ) ) ; / * c r e a t e c h i l d p r o c e s s * / i f (! C r e a t e P r o c e s s ( N U L L, / * u s e c o m m a n d l i n e * / " C : \ \ W I N D O W S \ \ s y s t e m 3 2 \ \ m s p a i n t. e x e ", / * c o m m a n d * / N U L L, / * d o n t i n h e r i t p r o c e s s h a n d l e * / N U L L, / * d o n t i n h e r i t t h r e a d h a n d l e * / F A L S E, / * d i s a b l e h a n d l e i n h e r i t a n c e * / 0, / * n o c r e a t i o n f l a g s * / N U L L, / * u s e p a r e n t s e n v i r o n m e n t b l o c k * / N U L L, / * u s e p a r e n t s e x i s t i n g d i r e c t o r y * / 5. 9

PROCESS TERMINATION Process executes last statement and asks the operating system to delete it (exit( ) Output data from child to parent (via wait( ) Process resources are deallocated by operating system 5. 10

PROCESS TERMINATION Parent may terminate execution of children processes (abort( ) Child has exceeded allocated resources Task assigned to child is no longer required If parent is exiting Some operating systems do not allow child to continue if its parent terminates All children terminated cascading termination 5. 11

PROCESS TERMINATION Wait for termination, returning the pid: pid_t pid; int status; pid = wait(&status); If no parent waiting, then terminated process is a zombie If parent terminated, processes are orphans 5. 12

INTERPROCESS COMMUNICATION 56. 13. 1

INTERPROCESS COMMUNICATION Processes within a system may be independent or cooperating Independent process cannot affect or be affected by the execution of another process Cooperating process can affect or be affected by other processes, including sharing data

INTERPROCESS COMMUNICATION Reasons for cooperating processes: Information sharing Computation speedup Modularity Convenience 6. 2

INTERPROCESS COMMUNICATION Cooperating processes need interprocess communication (IPC) Two models of IPC Shared memory Message passing 6. 3

MULTIPROCESS ARCHITECTURE CHROME BROWSER Many web browsers ran as single process (some still do) If one web site causes trouble, entire browser can hang or crash 6. 4

MULTIPROCESS ARCHITECTURE CHROME BROWSER Google Chrome Browser is multiprocess with 3 categories 1. Browser process manages user interface, disk and network I/O 2. Renderer process renders web pages, deals with HTML, Javascript, new one for each website opened Runs in sandbox restricting disk and network I/O, minimizing effect of security exploits 3. Plug-in process for each type of plug-in 6. 5

MULTIPROCESS ARCHITECTURE CHROME BROWSER 6. 6

COMMUNICATIONS MODELS 6. 7

PRODUCER-CONSUMER PROBLEM Paradigm for cooperating processes, producer process produces information that is consumed by a consumer process unbounded-buffer places no practical limit on the size of the buffer bounded-buffer assumes that there is a fixed buffer size 6. 8

SHARED-MEMORY SYSTEMS # d e f i n e B U F F E R _ S I Z E 1 0 t y p e d e f s t r u c t {... } i t e m ; i t e m b u f f e r [ B U F F E R _ S I Z E ] ; i n t i n = 0 ; i n t o u t = 0 ; Shared data Solution is correct, but can only use BUFFER_SIZE-1 elements 6. 9

BOUNDED-BUFFER PRODUCER w h i l e ( t r u e ) { / * p r o d u c e a n i t e m i n n e x t p r o d u c e d * / w h i l e ( ( ( i n + 1 ) % B U F F E R S I Z E ) = = o u t ) ; / * d o n o t h i n g * / b u f f e r [ i n ] = n e x t p r o d u c e d ; i n = ( i n + 1 ) % B U F F E R S I Z E ; } 6. 10 11

BOUNDED-BUFFER CONSUMER i t e m n e x t _ c o n s u m e d ; w h i l e ( t r u e ) { w h i l e ( i n = = o u t ) ; / * d o n o t h i n g * / n e x t c o n s u m e d = b u f f e r [ o u t ] ; o u t = ( o u t + 1 ) % B U F F E R S I Z E ; / * c o n s u m e t h e i t e m i n n e x t c o n s u m e d * / } 6. 12

MESSAGE-PASSING SYSTEMS Mechanism for processes to communicate and to synchronize their actions Message system processes communicate with each other without resorting to shared variable 6. 13

INTERPROCESS COMMUNICATION IPC facility provides two operations: send(message) message size fixed or variable receive(message) If P and Q wish to communicate, they need to: establish a communication link between them exchange messages via send/receive

INTERPROCESS COMMUNICATION Implementation of communication link physical (e.g., shared memory, hardware bus) logical (e.g., direct or indirect, synchronous or asynchronous, automatic or explicit buffering) 6. 14

IMPLEMENTATION QUESTIONS How are links established? Can a link be associated with more than two processes? How many links can there be between every pair of communicating processes? What is the capacity of a link? Is the size of a message that the link can accommodate fixed or variable? Is a link unidirectional or bi-directional? 6. 15

DIRECT COMMUNICATION Processes must name each other explicitly: send(p, message) send a message to process P receive(q, message) receive a message from process Q 6. 16 17

DIRECT COMMUNICATION Properties of communication link Links are established automatically A link is associated with exactly one pair of communicating processes Between each pair there exists exactly one link The link may be unidirectional, but is usually bidirectional

INDIRECT COMMUNICATION Messages are directed and received from mailboxes (also referred to as ports) Each mailbox has a unique id Processes can communicate only if they share a mailbox 6. 18

INDIRECT COMMUNICATION Properties of communication link Link established only if processes share a common mailbox A link may be associated with many processes Each pair of processes may share several communication links Link may be unidirectional or bi-directional 6. 19

INDIRECT COMMUNICATION Operations create a new mailbox send and receive messages through mailbox destroy a mailbox Primitives are defined as: send(a, message) send a message to mailbox A receive(a, message) receive a message from mailbox A 6. 20

INDIRECT COMMUNICATION Mailbox sharing P1, P2, and P3 share mailbox A P1, sends; P2 and P3 receive Who gets the message? 6. 21

INDIRECT COMMUNICATION Solutions Allow a link to be associated with at most two processes Allow only one process at a time to execute a receive operation Allow the system to select arbitrarily the receiver. Sender is notified who the receiver was. 6. 22

SYNCHRONIZATION Message passing may be either blocking or non-blocking Blocking is considered synchronous Blocking send has the sender block until the message is received Blocking receive has the receiver block until a message is available 6. 23

SYNCHRONIZATION Non-blocking is considered asynchronous Non-blocking send has the sender send the message and continue Non-blocking receive has the receiver receive a valid message or null 6. 24

SYNCHRONIZATION Different combinations possible If both send and receive are blocking, we have a rendezvous Producer-consumer becomes trivial m e s s a g e n e x t _ p r o d u c e d ; w h i l e ( t r u e ) { / * p r o d u c e a n i t e m i n n e x t p r o d u c e d * / s e n d ( n e x t p r o d u c e d ) ; } m e s s a g e n e x t _ c o n s u m e d ; w h i l e ( t r u e ) { r e c e i v e ( n e x t c o n s u m e d ) ; / * c o n s u m e t h e i t e m i n n e x t c o n s u m e d * / } 6. 25

BUFFERING Queue of messages attached to the link; implemented in one of three ways 1. Zero capacity 0 messages Sender must wait for receiver (rendezvous) 2. Bounded capacity finite length of n messages Sender must wait if link full 3. Unbounded capacity infinite length Sender never waits 6. 26

EXAMPLES OF IPC SYSTEMS 67. 27. 1

POSIX SHARED MEMORY Process first creates shared memory segment s h m _ f d = s h m _ o p e n ( n a m e, O C R E A T O R D R W, 0 6 6 6 ) ; Also used to open an existing segment to share it Set the size of the object f t r u n c a t e ( s h m f d, 4 0 9 6 ) ; Now the process could write to the shared memory s p r i n t f ( s h a r e d m e m o r y, " W r i t i n g t o S M " ) ;

POSIX PRODUCER 7. 2

POSIX CONSUMER 7. 3

MACH (1) Mach communication is message based Even system calls are messages Each task gets two mailboxes at creation- Kernel and Notify Only three system calls needed for message transfer msg_send(), msg_receive(), msg_rpc() Mailboxes needed for commuication, created via port_allocate() 7. 4

MACH (2) Send and receive are flexible, for example four options if mailbox full: 1. Wait indefinitely 2. Wait at most n milliseconds 3. Return immediately 4. Temporarily cache a message 7. 5

WINDOWS (!) Message-passing centric via advanced local procedure call (LPC) facility Only works between processes on the same system Uses ports (like mailboxes) to establish and maintain communication channels 7. 6

WINDOWS (2) Communication works as follows: The client opens a handle to the subsystem s connection port object. The client sends a connection request. The server creates two private communication ports and returns the handle to one of them to the client. The client and server use the corresponding port handle to send messages or callbacks and to listen for replies. 7. 7

LOCAL PROCEDURE CALLS IN WIN XP 7. 8

COMMUNICATION IN CLIENT SERVER SYSTEMS 78. 91

COMMUNICATION IN CLIENT SERVER SYSTEMS Sockets Remote Procedure Calls Pipes Remote Method Invocation (Java)

SOCKETS A socket is defined as an endpoint for communication Concatenation of IP address and port a number included to differentiate network services on host The socket 161.25.19.8:1625 refers to port 1625 on host 161.25.19.8 Communication consists between a pair of sockets All ports below 1024 are well known, used for standard services Special IP address 127.0.0.1 (loopback) to refer to system on which process is running 8. 2

SOCKET COMMUNICATION 8. 3

Connection-oriented (TCP) Connectionless (UDP) SOCKETS IN JAVA Three types of sockets MulticastSocket class data can be sent to multiple recipients 8. 4

SOCKETS IN JAVA 8. 5

REMOTE PROCEDURE CALLS Remote procedure call (RPC) abstracts procedure calls between processes on networked systems Again uses ports for service differentiation Stubs client-side proxy for the actual procedure on the server The client-side stub locates the server and marshalls the parameters The server-side stub receives this message, unpacks the marshalled parameters, and performs the procedure on the server 8. 6

REMOTE PROCEDURE CALLS On Windows, stub code compile from specification written in Microsoft Interface Definition Language (MIDL) Data representation handled via External Data Representation (XDL) format to account for different architectures Big-endian and little-endian Remote comm. more failure scenarios than local Messages can be delivered exactly once rather than at most once OS typically provides a rendezvous/matchmaker service to connect client and server 8. 7

EXECUTION OF RPC 8. 8

PIPES Acts as a conduit allowing two processes to communicate Issues Is communication unidirectional or bidirectional? In the case of two-way communication, is it half or fullduplex? Must there exist a relationship (i.e. parent-child) between the communicating processes? Can the pipes be used over a network?

ORDINARY PIPES Ordinary Pipes allow communication in standard producer-consumer style Producer writes to one end (the write-end of the pipe) Consumer reads from the other end (the read-end of the pipe) Ordinary pipes are therefore unidirectional 88. 10. 9

ORDINARY PIPES Require parent-child relationship between communicating processes Windows calls these anonymous pipes 8. 11

NAMED PIPES Named Pipes are more powerful than ordinary pipes Communication is bidirectional No parent-child relationship is necessary between the communicating processes Several processes can use the named pipe for communication Provided on both UNIX and Windows systems 8. 12

QUESTIONS 89. 13. 1

BONUS Exam question number 2: Process Concept and Multithreaded Programming 9. 2