Skip to content

Commit f200b19

Browse files
committed
Adding concurrent program definition to the glossary and referencing it in the concurrency chapter
1 parent 5443182 commit f200b19

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/concurrency.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ r[concurrency]
22
# Concurrency
33

44
r[concurrency.intro]
5-
Rust provides language and library features for writing concurrent programs. These features are designed to prevent data races --- situations in which multiple threads access the same memory without proper synchronization, with at least one of the accesses modifying that memory.
5+
Rust provides language and library features for writing [concurrent programs]. These features are designed to prevent data races --- situations in which multiple threads access the same memory without proper synchronization, with at least one of the accesses modifying that memory.
66

77
This chapter describes the traits, types, and concepts that Rust uses to express and enforce safe concurrency.
8+
9+
[concurrent programs]: glossary.md#concurrent-program

src/glossary.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ Combinators are higher-order functions that apply only functions and
5050
earlier defined combinators to provide a result from its arguments.
5151
They can be used to manage control flow in a modular fashion.
5252

53+
### Concurrent program
54+
55+
A concurrent program is a program that can perform multiple tasks or processes at the same time, possibly overlapping in execution.
56+
5357
### Crate
5458

5559
A crate is the unit of compilation and linking. There are different [types of

0 commit comments

Comments
 (0)