From 8b0fd1a2c446037b31e375d3e392d4667aea0826 Mon Sep 17 00:00:00 2001 From: Jet Hughes Date: Thu, 29 Sep 2022 09:21:54 +1300 Subject: [PATCH] vault backup: 2022-09-29 09:21:54 --- content/notes/17-processes-communication.md | 24 +++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 content/notes/17-processes-communication.md diff --git a/content/notes/17-processes-communication.md b/content/notes/17-processes-communication.md new file mode 100644 index 000000000..a077929af --- /dev/null +++ b/content/notes/17-processes-communication.md @@ -0,0 +1,24 @@ +--- +title: "17-processes-communication" +aliases: +tags: +- cosc204 +- lecture +--- + +![process tree example](https://i.imgur.com/4ysHisl.png) + +# 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