Home › Per Nystrom (Event Queue), queueing events betwe…
Per Nystrom (Event Queue), queueing events between producer and consumer DECOUPLES them in which respect?
AIn language (e.g. C++ ↔ JavaScript)
BIn thread (always strictly cross-thread)
CIn version (e.g. v1 ↔ v2 of API)
DIn time (producer fires + consumer drains later)
Answer & Solution
Correct answer: D. In time (producer fires + consumer drains later)
Nystrom Ch. Event Queue: producer enqueues now; consumer dequeues at its own pace. Trades latency for throughput + decoupling.
Related questions
Per Nystrom (Singleton chapter), Nystrom's view of the Singleton pattern in games is best Per Nystrom (Service Locator), the Service Locator pattern provides which feature?Per Nystrom (Spatial Partition), structures like quadtrees / BVH speed up which game operaPer Nystrom (Double Buffer), separating current vs next-frame state prevents which artifacPer Nystrom (Object Pool), reusing pre-allocated objects instead of new/delete each frame Per Nystrom (State pattern), modelling a character with 'standing', 'jumping', 'ducking' bPer Nystrom (Command pattern), a 'Command' object typically does which?Per Nystrom (Observer), the Observer pattern is also commonly known by which other name?