mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-27 23:04:05 -06:00
vault backup: 2022-09-29 09:21:54
This commit is contained in:
parent
1867b97aa6
commit
8b0fd1a2c4
24
content/notes/17-processes-communication.md
Normal file
24
content/notes/17-processes-communication.md
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
---
|
||||||
|
title: "17-processes-communication"
|
||||||
|
aliases:
|
||||||
|
tags:
|
||||||
|
- cosc204
|
||||||
|
- lecture
|
||||||
|
---
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
# cooperating processes
|
||||||
|
defn: coop process - execution of one process can affect the execution of another. e.e.g, processes for aprallel computing, threads for multithreading.
|
||||||
|
|
||||||
|
defn: independent process - one does not affect the other and they do not communicate etc
|
||||||
|
|
||||||
|
# creating a child process
|
||||||
|
A child process is creating from a parent using fork.
|
||||||
|
everything the same as the parent except the child has a differnent process ID.
|
||||||
|
|
||||||
|
# communcation between parent and child
|
||||||
|
process create a chld process to do a task. but they need to communicate
|
||||||
|
|
||||||
|
|
||||||
|
# signal and pipe for inter process communication
|
||||||
Loading…
Reference in New Issue
Block a user