January 2019
Beginner
210 pages
4h 47m
English
The queue contains a list of waiting to be processed. Each is associated with a function. When the stack is empty, a message is taken out of the queue and processed. The processing consists of calling the associated function and adding the frames to the stack. Message processing ends when the stack becomes empty again.
In the previous runtime diagram, the blocks inside the queue represent the messages. The messages are usually generated by user or applications events. For example, when the user clicks in an element with an event handler, a new message is added to the queue.
Read now
Unlock full access