From 8634b822a51dcb345c2584a9510402bc4be8c0a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Thu, 24 Aug 2023 14:41:30 +0200 Subject: [PATCH] Threading --- README.md | 2 +- index.html | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 51107b7..4bd1e4d 100644 --- a/README.md +++ b/README.md @@ -2089,7 +2089,7 @@ from collections import deque Threading --------- -* **CPython interpreter can only run a single thread at a time. Using multiple threads won't result in a faster execution, unless at least one of the threads contains an I/O operation.** +**CPython interpreter can only run a single thread at a time. Using multiple threads won't result in a faster execution, unless at least one of the threads contains an I/O operation.** ```python from threading import Thread, Timer, RLock, Semaphore, Event, Barrier from concurrent.futures import ThreadPoolExecutor, as_completed diff --git a/index.html b/index.html index a17a97f..61dac04 100644 --- a/index.html +++ b/index.html @@ -1727,9 +1727,7 @@ CompletedProcess(args=['bc', #Threading
from threading import Thread, Timer, RLock, Semaphore, Event, Barrier
+

#Threading

CPython interpreter can only run a single thread at a time. Using multiple threads won't result in a faster execution, unless at least one of the threads contains an I/O operation.

from threading import Thread, Timer, RLock, Semaphore, Event, Barrier
 from concurrent.futures import ThreadPoolExecutor, as_completed