DeepFrontend
Learning Paths
Practice
System Design & DS
Design Studio
Data Structures Curriculum
Real-World Case Studies
Careers
Job Board
Resume Builder
Blog
Sign in
Search
⌘K
Go Pro
Loading compiler resources...
API Development Quiz Practice
Active Recall Drill Session
← Exit Session
Question 1 of 1
hard
API Development
Why does the single-threaded Node event loop make the Set-based broadcast pattern safe without explicit locking?
A
It doesn't — this pattern is actually unsafe in Node
B
Node processes one callback at a time, so there's no risk of two message handlers concurrently mutating the clients Set and corrupting it, unlike a genuinely multi-threaded server
C
JavaScript Sets are inherently thread-safe regardless of runtime
D
The event loop has nothing to do with this pattern's safety
Check Answer