Skip to content

Commit f63870d

Browse files
Apply suggestion from @StanFromIreland
Co-authored-by: Stan Ulbrych <stan@python.org>
1 parent 2efc94f commit f63870d

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

‎Doc/glossary.rst‎

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -374,14 +374,15 @@ Glossary
374374

375375
CPU-bound
376376
Describes a task that spends most of its time computing, which keeps a
377-
CPU core busy. If each task keeps a core busy on its own, running the
378-
tasks :term:`concurrently <concurrency>` on one core does not finish the
379-
work sooner, because the tasks still have to take turns using that core.
380-
Running independent tasks in :term:`parallel <parallelism>` on several
381-
cores can finish it sooner, although the cores do the same amount of work
382-
in total. For example, if sorting a large list takes one second, sorting
383-
three of them takes about three seconds on one core and can take as
384-
little as one second on three cores. See also :term:`I/O-bound`.
377+
CPU core busy. Running such tasks :term:`concurrently <concurrency>` on
378+
one core does not finish the work sooner, because they take turns using
379+
that core, but running them in :term:`parallel <parallelism>` on several
380+
cores can. For example, if sorting a large list takes one second,
381+
sorting three of them takes about three seconds on one core and can take
382+
as little as one second on three cores. With the
383+
:term:`global interpreter lock`, only one thread runs Python bytecode at
384+
a time, so threads do not speed up CPU-bound Python code. See also
385+
:term:`I/O-bound`.
385386

386387
CPython
387388
The canonical implementation of the Python programming language, as

0 commit comments

Comments
 (0)