Skip to main content
🔒 Preview mode. The first 15 Foundations lessons are free; this one is Pro. Start a 7-day trial to unlock the editor, AI hints and the rest of the curriculum. Card required, cancel any time in Dashboard.
Start 7-day trial →
⚡
← Courses
›
Senior Deep-Dives
›
Module 4 · Memory + profiling · Recap
›
Concurrency: actor model vs shared memory
quiz
89 / 161
🇺🇸
EN
▼
↗
Share
⋯
More
+100 XP
📋
Task
📖
Theory
🤖
AI Help
Task
📝 **Question:** Main advantage of actors vs threads + locks? 📋 Pick the right answer. 💡 **Hint:** Re-read the theory above if unsure.
🎯 Quiz
Question
📝 **Question:** Main advantage of actors vs threads + locks? 📋 Pick the right answer. 💡 **Hint:** Re-read the theory above if unsure.
A
Lower memory — one OS process per actor avoids the per-thread 8 MB stack overhead of CPython.
B
No shared mutable state → no race conditions or deadlocks. Concurrency by construction.
C
Faster context switches — actor mailboxes use lock-free queues that beat `threading.Lock` on every CPU.
D
Easier to scale across machines — actor frameworks ship transparent network routing out of the box.
Submit answer
💬 Discussion
Be the first to ask a question or share a tip.
Sign in
to join the discussion. Reading is free.
Loading discussion…