当前位置:网站首页>Interview question -- event cycle
Interview question -- event cycle
2022-07-25 02:49:00 【H5_ ljy】
First execute the first round of macro tasks ( Script ) The code in : Sync ==> Micro task ==> Code in the next round of macro tasks
In macro task : Sync ==> Micro task ==> Macro tasks in the next queue
In the next round of queued macro tasks : Perform synchronization ==> Perform micro tasks ==. Continue to queue when encountering macro tasks ==> Execute the next queued macro task
In the next round of queued macro tasks : Perform synchronization ==> Perform micro tasks ==. Continue to queue when encountering macro tasks ==> Execute the next queued macro task
In the next round of queued macro tasks : Perform synchronization ==> Perform micro tasks ==. Continue to queue when encountering macro tasks ==> Execute the next queued macro task
So it circulates ==> It's the cycle of events .
summary :1. The macro task runs first Micro task post run
2.then It's a micro task Global scripts and calculators are red tasks
边栏推荐
- [jailhouse article] certify the uncertified rewards assessment of virtualization for mixed criticality
- How to switch terminators in PostgreSQL?
- Text reading end judgment
- "Introduction to interface testing" punch in to learn day09: Micro service interface: how to use mock to solve chaotic call relationships
- UDP message structure and precautions
- Coal industry supply chain centralized mining system: digitalization to promote the transformation and upgrading of coal industry
- Redis unauthorized access vulnerability recurrence (www.hetianlab.com)
- Execution methods with static code blocks and child and parent classes
- 【C】 Advanced knowledge of file operation
- SQL Server 2022 installation
猜你喜欢

JS written test question -- deep copy of object

C: wechat chat software instance (wpf+websocket+webapi+entityframework)

Tp5.1 paging (with parameter transfer)

Tp5.1 login configuration method of whether to login public functions (complete login case)

Ctfshow misc introduction

Strategy mode, just read one article

B2B e-commerce trading platform of heavy metal industry: breaking the state of data isolation and improving the benefits of heavy metal industry

Flutter apple native Pinyin keyboard input exception on textfield | Pinyin input process callback problem

Rolling division, Young's matrix and three-step flip

Object.defineproperty use
随机推荐
Three ways to solve your performance management problems
Failed to create data snapshot: lock file [/siyuan/data/assets/image- 2022070216332-jijwccs.png failed: open /siyuan/data/assets/image- 2022070216332-jijwccs.png: permission denied; unable to lock fil
@Retryable @backoff @recover retry the use of annotations
C language: Structure -- a detailed explanation of memory byte alignment
How to use blender to make 360 degree panorama and panoramic video?
SQL Server 2022 installation
BGP introduction
Visualization of correlation coefficient matrix
What are the basic skills of engineers? How to practice? -- Learning experience sharing "suggestions collection"
Technical experts from large factories: Thoughts on cloud nativity and software supply chain security
Go common standard library -time
Classic network learning RESNET code implementation
Project management tool Zen
Daily three questions 7.16
Daily three questions 7.15
Domain driven model (DDD)
HAC cluster is modified to stand-alone
Rotating frame target detection mmrotate v0.3.1 training hrsc2016 data set (II)
Routing policy interferes with routing
Large number processing -- use case