• Parallelism: Executing multiple tasks simultaneously on physically separate processor cores or hardware (about execution).
Concurrency & Parallelism - Threads, Locks & Race Conditions
Master the fundamentals of multi-threaded programming, synchronization primitives, and common concurrency pitfalls. Learn how to design robust, thread-safe software systems.
Cards in this deck
(20 cards)Preview terms and definitions before starting your study session.
• Parallelism: Executing multiple tasks simultaneously on physically separate processor cores or hardware (about execution).
• Thread: A lightweight unit of execution within a process that shares memory (heap, code, global data) with sibling threads, keeping only its own stack and instruction pointer.
counter++ involves three instructions: read, modify, write back. Interleaving causes lost updates.counter += 1 # Not thread-safewith lock:
counter += 1•
acquire() / wait() / P(): Decrements the count. Blocks if count is .•
release() / signal() / V(): Increments the count, unblocking a waiting thread.• Mutex: Possesses strict ownership; only the thread that locks it can unlock it.
Related Flashcard Sets
Explore similar study materials created by the community
JLPT N2 - Upper-Intermediate Japanese Kanji, Grammar & Expressions
Master high-frequency JLPT N2 grammar patterns, critical reading transition words, and high-yield kanji compounds to boost your exam score.
CompTIA Network+ (N10-008) - Networking Fundamentals & Subnetting
Master key networking concepts, OSI layer troubleshooting, IPv4/IPv6 subnetting calculations, critical port numbers, and Wi-Fi standards for the CompTIA Network+ N10-008 exam.
HSK 4 - Intermediate Chinese Vocabulary & Grammar
Master HSK 4 Chinese with this comprehensive flashcard deck! Dive into essential vocabulary, advanced grammar patterns like 把 and 被, common idioms, and cultural nuances to confidently elevate your conversational and reading skills.
CompTIA Network+ (N10-008) - Networking Fundamentals & Protocols
Master essential networking protocols, topologies, cabling standards, and troubleshooting tools with this high-yield CompTIA Network+ (N10-008) flashcard deck. Perfect for IT professionals and exam candidates aiming for certification success.