Open main menu
Article
Quizzes
Tools
EN
Article
Quizzes
Tools
All quizzes
/
Sub-Agents & Parallel Execution
/
Two sub-ag...
Two sub-agents are both tasked with appending entries to the same log file. What is the likely outcome?
Race conditions or data loss — concurrent writes to shared mutable state without locking can corrupt the file
Both agents succeed because file systems handle concurrent writes automatically
The second agent waits for the first to finish before it starts writing
The coordinator detects the conflict and automatically serialises the writes
Submit answers