What is the role of a message queue (message loop) in a Windows desktop application?
-
A
It stores application settings
-
B
It dispatches OS and user input events to the appropriate window procedure
-
C
It manages file I/O operations
-
D
It schedules background threads