You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: exercises/practice/parallel-letter-frequency/.docs/instructions.append.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,11 @@
1
1
# Instructions append
2
2
3
-
Javascript is single-threaded by nature, so it lacks many of the language features that other languages have in order to handle parallel code execution.
3
+
JavaScript is single-threaded by nature, so it lacks many of the language features that other languages have in order to handle parallel code execution.
4
4
In fact, the only way to achieve "real" parallel code execution is through `Worker threads` (also reffered to as `Web Workers`).
5
5
6
6
Almost always, code that appears to execute in parallel,
7
7
such as `async functions` or `Promises`, will actually execute concurrently instead.
8
-
This is often better, since modern Javascript is optimized for such use,
8
+
This is often better, since modern JavaScript is optimized for such use,
9
9
and you will often see code that "emulates" (or "cheats") parallel execution by the use of `Promise.all()` and other concurrent execution methods.
10
10
11
11
```exercism/caution
@@ -24,17 +24,17 @@ For the sake of completeness, here's a definition for synchronous execution:
24
24
25
25
- Synchronous execution is when a task has to wait for another running task to complete, before it can run.
26
26
27
-
## Parallelism in Javascript
27
+
## Parallelism in JavaScript
28
28
29
-
Even though Javascript by default is single-threaded, there is a way to execute code in parallel fashion.
29
+
Even though JavaScript by default is single-threaded, there is a way to execute code in parallel fashion.
30
30
31
-
If your running javascript in the browser (e.g. in a web app),
31
+
If you are running JavaScript in the browser (e.g. in a web app),
32
32
then the way to achieve parallelism is through the [Web Worker API][mdn-demo].
33
33
As described by MDN:
34
34
35
35
> Web Workers makes it possible to run a script operation in a background thread separate from the main execution thread of an application.
36
36
37
-
On the other hand, if your javascript is running in Node.js, which is Exercism's target runtime,
37
+
On the other hand, if your JavaScript is running in Node.js, which is Exercism's target runtime,
38
38
this same concept is known as [Worker threads][node].
0 commit comments