Parallelism and multithreading

I couldn't find a sample code of Mojo multithreading, Can anyone guide me where I can find the proper guide, or provide me with sample snippets to learn from. thanks
2 Replies
Prabhu
Prabhu14mo ago
Almost all the examples in the documentation (Mandelbrot set, matmul, ray tracing) feature parallelism which internally use multi-threading (via coroutines). The examples are all from the point of view of performing computation in parallel. Are you asking about the ability to create and manage your own pool of threads?
Prabhu
Prabhu14mo ago
There is some mention of coroutines here: https://docs.modular.com/mojo/changelog.html#january-2023 as well as module documentation here: https://docs.modular.com/mojo/stdlib/builtin/coroutine.html
Modular Docs - Mojo🔥 changelog
A history of significant Mojo changes.
Want results from more Discord servers?
Add your server