2 ms·
> We all used co-routines in Windows 3.1 ("co-operative multitasking"), and the application Window would go blank. Yes, insisting on piping everything through
by pdonis 7y ago
> We all used co-routines in Windows 3.1 ("co-operative multitasking"), and the application Window would go blank.
Yes, insisting on piping everything through a single message loop, including tasks that block, is not a good idea.
The really bad part is that even though we're now on Windows 10, and Windows has claimed to have preemptive multitasking for a number of versions now, you can still see Windows applications lock up and their windows go blank when a blocking task happens that stalls their message loop.
If there were ever a use case for threads (what? they can't run the GUI in a separate thread from background tasks? This is 2020, people! Even Javascript knows how to do this!), this is it.