#include #include int main(void) { bool ready[2][4] = { {true, false, true, false}, {false, true, false, true} }; const char *names[4] = {"listen", "clientA", "clientB", "disk"}; printf("Starting simulated event loop\n"); for (int round = 0; round < 2; round++) { printf("Round %d:\n", round + 1); for (int fd = 0; fd < 4; fd++) { if (ready[round][fd]) { printf(" Handling event on %s (fd %d)\n", names[fd], fd); } } } printf("Event loop finished without blocking\n"); return 0; }