From 8d7a1a16b510bca2d82213f7d1b2ef14a2ee0134 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 18 Jul 2023 00:52:51 -0700 Subject: [PATCH 1/3] Deleted accidental repeated word 'and' --- reading/supervisors.livemd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reading/supervisors.livemd b/reading/supervisors.livemd index 4a0409495..6a709fd39 100644 --- a/reading/supervisors.livemd +++ b/reading/supervisors.livemd @@ -286,7 +286,7 @@ flowchart TD class P2,P3,..,Pn restarted ``` -P2 crashed, the child processes after it in the start order are terminated, then P2 and the other terminated child processes are are restarted. +P2 crashed, the child processes after it in the start order are terminated, then P2 and the other terminated child processes are restarted. ## Restart Strategy Examples From 07475a43cb851d0b30b973f35bee7f19f84dc38e Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 18 Jul 2023 00:58:27 -0700 Subject: [PATCH 2/3] Deleted superfluous/confusing word 'to' --- exercises/process_drills.livemd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/process_drills.livemd b/exercises/process_drills.livemd index 30b296c86..54234c3eb 100644 --- a/exercises/process_drills.livemd +++ b/exercises/process_drills.livemd @@ -112,7 +112,7 @@ Use [Process.send_after/4](https://hexdocs.pm/elixir/Process.html#send_after/4) ``` -Use [Process.spawn/3](https://hexdocs.pm/elixir/Process.html#spawn/3) to and [receive](https://hexdocs.pm/elixir/Kernel.SpecialForms.html#receive/1) to spawn a process that waits to receive a message. Use [Process.send_after/4](https://hexdocs.pm/elixir/Process.html#send_after/4) to send the spawned process a message after two seconds. +Use [Process.spawn/3](https://hexdocs.pm/elixir/Process.html#spawn/3) and [receive](https://hexdocs.pm/elixir/Kernel.SpecialForms.html#receive/1) to spawn a process that waits to receive a message. Use [Process.send_after/4](https://hexdocs.pm/elixir/Process.html#send_after/4) to send the spawned process a message after two seconds. ```elixir From 1b9f2667de15230d96657ca6c61edae4ce032d13 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 18 Jul 2023 01:09:58 -0700 Subject: [PATCH 3/3] Corrected tense to '...being processed' from 'being processes' --- reading/genservers.livemd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reading/genservers.livemd b/reading/genservers.livemd index 528a54c03..5466d0067 100644 --- a/reading/genservers.livemd +++ b/reading/genservers.livemd @@ -340,7 +340,7 @@ GenServer.cast(pid, :slow_increment) ## Concurrency -To have concurrent code, we simply need two GenServers. Notice both messages below finish at the same time because each is being processes concurrently. +To have concurrent code, we simply need two GenServers. Notice both messages below finish at the same time because each is being processed concurrently. > If you have fewer CPU cores than processes, concurrent code does not run in **parallel**, so while code gains the benefits of task-switching typically giving the illusion of running in parallel, they will not actually process in parallel at the same time.