Tag: threads
Browse 7 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.
Async Patterns with Promises, Futures, and Coroutines
Write efficient concurrent code with async/await, promises, futures, and coroutines in JavaScript,...
Thread-Safe Collections: Blocking Queues and Concurrent Maps
How to safely share collections between threads using concurrent data structures—blocking queues,...
Locks, Mutexes, and Semaphores for Shared Access
How to prevent race conditions in concurrent programs using mutexes, read-write locks, semaphores,...
Prevent Race Conditions in JavaScript Async Code
Fix race conditions in async JavaScript with request cancellation, sequencing, locks and Promise...
Manage Concurrent Work with Thread Pools and Executors
How to efficiently manage worker threads using thread pools, executors, and rejection policies in...
Complete Guide to Java Concurrency
Java concurrency in production: threads, locks, CompletableFuture, virtual threads, executors,...
Concurrency Patterns Guide
Production-ready concurrency patterns: thread pools, async/await, producer-consumer, semaphores,...