2 ms·
Event driven is only comparable if you explicitly makes the events go on a queue and allows preemption. For languages like javascript for example people all to
by vidarh 6y ago
Event driven is only comparable if you explicitly makes the events go on a queue and allows preemption.
For languages like javascript for example people all too often write evented code with an expectation that events will be processed 'practically immediately'. They're writing evented code, but not code designed for concurrency.
To get this right, you need to actually have the code executed with actual preemptive multitasking, and test it with random substantial delays in processing of messages.