4 ms·
Threads vs. events is a false dichotomy to me. Currently writing an event-driven finite state machine dispatcher that fires up threaded processes to perform lon
by CodeWriter23 9y ago
Threads vs. events is a false dichotomy to me. Currently writing an event-driven finite state machine dispatcher that fires up threaded processes to perform long-running tasks that do not modify state. The FSM brings order and structure to chaotic event interactions, while threading enables full utilization of CPU cores. All the better to drain your battery, lol. Seriously though, I made this choice to balance reliability with responsivenes.
Choose the right tool for the job.
- bullen 9y agoI agree that they are not contradictory but rather complementary: https://github.com/tinspin/rupy https://github.com/tinspin/rupy My web server uses multi-threaded events. So both!