The Basic Idea: An Event Loop
Explore the concept of event-based concurrency by understanding how an event loop waits for and processes events sequentially. Learn how event handlers work and how explicit scheduling improves system control, especially for network and disk I/O.
We'll cover the following...
We'll cover the following...
The basic approach we’ll use, as stated in the last lesson, is called event-based concurrency. The approach is quite simple: you simply wait for something (i.e., an “event”) to occur; when it does, you check what type of event it is and do the small amount of work it ...