Vigyata.AI
Is this your channel?

Threads - Nim Tutorial (Part 56)

316 views· 15 likes· 20:10· Jan 27, 2026

🛍️ Products Mentioned (23)

In this video we'll be learning how to work with threads in Nim! We cover a lot of theory on concurrency, parallelism and the garbage collector, but feel free to use the timestamps below to skip sections you are already familiar with! Nim Lesson Github: https://github.com/WeebNetsu/nim-learning-material CPU Game: https://github.com/plbrault/youre-the-os Learn More About Threads in Nim: - https://livebook.manning.com/book/nim-in-action/chapter-6/ - https://nim-docs.readthedocs.io/en/latest/learn/nim_by_example/parallelism/ - https://nim-lang.org/1.6.6/threads.html - https://nim-lang.org/docs/manual.html#threads Threadpool alternatives: - https://nimble.directory/pkg/weave - https://nimble.directory/pkg/malebolgia Support me by becoming a member: https://www.youtube.com/channel/UCrIsEy0a57Fz3MdEOvhWbkw/join Check out the Nim Tutorials Playlist: https://youtube.com/playlist?list=PLYBJzqz8zpWaiGbFcSdlh08zlpe8Tl_Gh Get 15% off on your first order from Silkworm Shop https://silkwormshop.co.za/ by using my code: REFCKBQAESCC9 Timestamps: 00:00 - Intro 00:34 - Theory 07:03 - Thread Programming 07:35 - Garbage Collector 09:20 - Basic Thread 13:01 - Multiple Threads 18:10 - Outro Subscribe for more videos! YouTube: https://www.youtube.com/stevesteacher?sub_confirmation=1 Odysee: https://odysee.com/$/invite/@stevesteacher:0 For more programming videos, feel free to subscribe to my 2nd channel: https://www.youtube.com/@programmervibe Crash Courses: https://www.youtube.com/playlist?list=PLYBJzqz8zpWbmPw2E0ywUEuhw6FEwVR0U C++ Programming Tutorials: https://youtu.be/2bSuuzMwda8 Lua Programming Tutorials: https://youtu.be/1srFmjt1Ib0 Love2D Game Dev Tutorials: https://youtube.com/playlist?list=PLYBJzqz8zpWYip5ZkTMQiOkqya9Iiefm9 Nim Programming Tutorials: https://youtube.com/playlist?list=PLYBJzqz8zpWaiGbFcSdlh08zlpe8Tl_Gh&si=_ChTUx7KXew-RnI1 Become a Web Developer: https://youtube.com/playlist?list=PLYBJzqz8zpWbsmFurxBg2Pm-mlBmJdXbh Python Programming Tutorials: https://youtube.com/playlist?list=PLYBJzqz8zpWYHDS2qS-UstfWdQRLrbQ9L&si=s9MObuX3zUHF_PAw PHP Tutorials: https://youtube.com/playlist?list=PLYBJzqz8zpWabvZludVukPwZfQe9IdX_f&si=6OWdV8ZOYMkcuLl8 HTML Tutorials: https://youtu.be/lobFuLWhp0M JavaScript Tutorials: https://youtube.com/playlist?list=PLYBJzqz8zpWbEec9oCuwTfNyebLQjuM5c&si=QAsYwRdJJBtqzrKV Bootstrap Tutorials: https://youtu.be/TzrxCl9vMGY?si=TqDig3-yZf6TQghW CSS Tutorials: https://youtu.be/nNXhyBtdjNQ?si=5Ssqo4U5HaMEJtVS Delphi Programming Tutorials: https://youtu.be/BqmJpFbRY2U Pascal Programming Tutorials: https://youtu.be/6jRVhT_JotY?si=NS9hDedlVQnQX3MV Linux Tutorials/Videos: https://youtube.com/playlist?list=PLYBJzqz8zpWYnUtUeVahkfIeYNKkLRMfZ How-to videos: https://www.youtube.com/playlist?list=PLYBJzqz8zpWbp2DxyVGUCqxSZaCwDvU3C Godot Game Dev Tutorials: https://youtube.com/playlist?list=PLYBJzqz8zpWZT3jepx1vY1nwhaC-T8wB2 TKinter Tutorials: https://youtube.com/playlist?list=PLYBJzqz8zpWZwVkeu2E5Hjw5ImK7SzMe3 Web Scraping/Beautiful Soup Tutorials: https://youtube.com/playlist?list=PLYBJzqz8zpWYfL1pYs4FG8Ed0Cf3sookG MySQL Tutorials: https://youtube.com/playlist?list=PLYBJzqz8zpWaBcVuneV9g4zbKsmMCo-rR Japanese Lessons: https://www.youtube.com/playlist?list=PLYBJzqz8zpWYy-iJ0xckeOjCCE2roN9Ww Group Chats: Weeb Chat: https://t.me/weeb_haven Programmer Haven: https://t.me/programmer_haven You can contact me on: Email: StevesTeacherYT@gmail.com Discord: https://discord.gg/NGtD9s6 Hey there!!! Wanna help support the channel :D? Ko-Fi: https://ko-fi.com/stevesteacher Liberapay: https://liberapay.com/stevesteacher/ PayPal: https://www.paypal.com/donate/?hosted_button_id=P9V2M4Q6WYHR8 YouTube Member: https://www.youtube.com/channel/UCrIsEy0a57Fz3MdEOvhWbkw/join Any suggestions? Leave it in the comment section or contact me somewhere else! Odysee Links: Python Programming Tutorials: https://odysee.com/@stevesteacher:0/Python-Tutorials:5?r=7wEp27kZSg8dDKtQWMJam6CbMAizo9Vt C++ Programming Tutorials: https://odysee.com/@stevesteacher:0/Cpp-Tutorials:d?r=7wEp27kZSg8dDKtQWMJam6CbMAizo9Vt HTML Tutorials: https://odysee.com/@stevesteacher:0/HTML-Tutorials:9?r=7wEp27kZSg8dDKtQWMJam6CbMAizo9Vt Tkinter Tutorials: https://odysee.com/@stevesteacher:0/Tkinter-Tutorials:d?r=7wEp27kZSg8dDKtQWMJam6CbMAizo9Vt Linux Tutorials: https://odysee.com/@stevesteacher:0/Linux-Terminal-Tutorials:7?r=7wEp27kZSg8dDKtQWMJam6CbMAizo9Vt Lua Tutorials: https://odysee.com/@stevesteacher:0/Lua-Tutorials:0?r=7wEp27kZSg8dDKtQWMJam6CbMAizo9Vt Love2D Game Dev Tutorials: https://odysee.com/@stevesteacher:0/Love2D:f Delphi Tutorials: https://odysee.com/@stevesteacher:0/Delphi-Tutorials:4?r=7wEp27kZSg8dDKtQWMJam6CbMAizo9Vt MySQL Tutorials: https://odysee.com/@stevesteacher:0/MySQL-Tutorials:c?r=7wEp27kZSg8dDKtQWMJam6CbMAizo9Vt Thank you for watching! #stevesteacher #nim #nimlang

About This Video

In this Nim tutorial (Part 56), I walk you through what “threads” actually mean in practice, and I spend a bit of time up front making sure we’re not mixing up concurrency and parallelism. If you’ve ever heard people use those words interchangeably and felt like something was off—yeah, same. I break down the mental model I use when I’m deciding whether I need threads at all, and what kind of speed-up I can realistically expect. After that, we get into actual thread programming in Nim: creating a basic thread, passing work to it, and then scaling the idea up to multiple threads. I also talk about the garbage collector, because if you ignore memory + GC behavior while doing threaded code, you’re going to have a bad time. The takeaway is simple: threads are powerful, but you need to be intentional about what data is shared, what’s copied, and how you structure your program so it stays predictable. I also point you to solid references and a couple of threadpool alternatives if you want higher-level tooling.

Frequently Asked Questions

🎬 More from Steve's teacher