Skip to content

Commit

Permalink
[docs] fix typos in parallelism tutorial (#3243)
Browse files Browse the repository at this point in the history
  • Loading branch information
jd-foster authored Feb 27, 2023
1 parent 2b93d2b commit 4d64d8d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/src/tutorials/algorithms/parallelism.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ The purpose of this tutorial is to give a brief overview of parallelism in
Julia as it pertains to JuMP, and to explain some of the things to be aware of
when writing parallel algorithms involving JuMP models.

## Multi-threading and Distributed computing
## Multi-threading and distributed computing

There are two main types of parallelism in Julia:

Expand Down Expand Up @@ -78,7 +78,7 @@ julia> ids
When working with threads, you need to avoid race conditions, in which two
threads attempt to write to the same variable at the same time. In the above
example we avoided a race condition by using `ReentrantLock`. See the
[Mult-threading](https://docs.julialang.org/en/v1/manual/multi-threading/)
[Multi-threading](https://docs.julialang.org/en/v1/manual/multi-threading/)
section of the Julia documentation for more details.

### Distributed computing
Expand Down Expand Up @@ -125,7 +125,7 @@ Unlike the `for`-loop approach of multi-threading, distributed computing
extends the Julia `map` function to a "parallel-map" function
`Distributed.pmap`. For each element in the list of arguments to map over,
Julia will copy the element to an idle worker process and evaluate the
function passing the element as an input argument.
function, passing the element as an input argument.

````julia
julia> function hard_work(i::Int)
Expand Down

0 comments on commit 4d64d8d

Please sign in to comment.