Skip to content

Commit 23a741f

Browse files
author
Roberto De Ioris
authored
Update AsyncIOAndUnrealEngine.md
1 parent 2111c4f commit 23a741f

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

‎tutorials/AsyncIOAndUnrealEngine.md‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -273,8 +273,10 @@ class RadioStreaming:
273273

274274
## Note: concurrency vs parallelism
275275

276-
If you have paid attentionm in the whole tutorial i have never used the term 'parallelism'.
276+
In the whole tutorial i have never used the term 'parallelism'.
277277

278-
It is important to distinguish between the two. By 'concurrency' we mean the possibility for a software to manage multiple tasks, 'parallelism' means a way for execute those tasks in parallel (one per cpu-core). Threads are a way to obtain parallelism (albeit not always true in Python) as well as processes.
278+
It is important to distinguish between 'concurrency' and 'parallelism'. By 'concurrency' we mean the possibility for a software to manage multiple tasks, 'parallelism' means a way for execute those tasks in parallel (one per cpu-core). Threads are a way to obtain parallelism (albeit not always true in Python) as well as processes.
279279

280-
Coroutines, works very similar as a classic game engine (included unreal): we split the code paths in multiple tiny logical abstractions (like Actors in UE) and we suspend/resume each of them continuously, giving the user the illusion that multiple components works together in the same time. (effectively this is how a kernel scheduler works too, your computer processes never run in parallel if you have a single cpu core !).
280+
Coroutines, works very similar as a classic game engine (included unreal): we split the code paths in multiple tiny logical abstractions (like Actors in UE) and we suspend/resume each of them continuously, giving the user the illusion that multiple components works together at the same time. (effectively this is how a kernel scheduler works too, your computer processes never run in parallel if you have a single cpu core !).
281+
282+
For more informations about cooperation between python threads and asyncio coroutines, check here: https://docs.python.org/3/library/asyncio-dev.html#concurrency-and-multithreading (TLDR, do not do it :P)

0 commit comments

Comments
 (0)