Tag: threads
Browse 8 practical software engineering resources tagged with "threads". Discover code recipes, design patterns, documentation templates, and in-depth guides to help you build, deploy, and maintain production-ready solutions involving threads. Each resource is written for engineers who ship real systems, with copy-paste examples and practical trade-offs.
Multithreading and Threading Models
Threads allow a program to run multiple tasks concurrently within the same process. They are the foundation of parallelism but introduce synchronization and safety challenges.
The resources below cover thread pools, locks, mutexes, semaphores, thread-local storage, and virtual threads. Each guide helps you write multithreaded code that is safe and efficient.
Every resource includes clear explanations, copy-paste code, and practical warnings. Use them to make informed decisions, avoid production pitfalls, and speed up your delivery. If you are just getting started, read the beginner-friendly articles first; if you are experienced, jump straight to the advanced patterns and architecture guides. New resources are added regularly, so bookmark this page and check back for the latest patterns.
Master Async Patterns with Promises, Futures, and Coroutines
How to write efficient concurrent code using async/await, promises, futures, and coroutines in...
Thread-Safe Collections: Blocking Queues and Concurrent Maps
How to safely share collections between threads using concurrent data structures—blocking queues,...
Coordinate Concurrent Tasks with Communicating
How to structure concurrent programs using channels, select statements, and goroutines for safe...
Coordinate Shared Access with Locks, Mutexes, and Semaphores
How to prevent race conditions in concurrent programs using mutexes, read-write locks, semaphores,...
Manage Concurrent Work with Thread Pools and Executors
How to efficiently manage worker threads using thread pools, executors, and rejection policies in...
Prevent Race Conditions in JavaScript Async Code
Identify and fix race conditions in asynchronous JavaScript using proper sequencing, atomic...
Complete Guide to Java Concurrency
Master Java concurrency in production. Covers threads, locks, CompletableFuture, virtual threads,...
Concurrency Patterns Guide
A guide to common concurrency patterns and what works for writing safe, efficient concurrent code.