Lecture 5: Process 2 Flashcards
3 parts of Child Process Management:
- Resource Sharing: which resources are available to the child
- Execution
- Address Space
fork ():
Creates a new child processes by creating a copy of executing process within a new address space.
execv (path, argv):
Replaces the process memory space w/ specified program in path and arguments argv
Independent Processes
Are not affected by the execution of other processes
Interprocess Communication
exchange data and information (i.e Messaging, Shared memory
Limited Modularity
Processes need to know each other’s pid (identifier)
-if the pid of a process changes then all references to that have to be examined again
Less Desirable:
Hard-coded technique (where identifiers are explicitly stated).
Indirect Communication
Messages directed and received from mailboxes (also referred to as ports.)
Blocking is
Synchronous
- Send has sender blocked until message is received
- Receive has receiver blocked until message is available
Non-Blocking is
Asynchronous
- Send has sender send message and continue
- Receive has receiver receive a valid message or null