Is the main thread of the browser the JS engine thread?

the browser has JS engine thread, GUI rendering thread, event thread, timer thread, network thread, event polling processing thread. It is often said that the worker thread works under the deployment of the main thread, so is the main thread the JS engine thread?


No.

the main thread of the browser is, of course, the browser itself.


when a browser is opened, it is usually multi-process, one is the main process, the other is the GPU process, and the tab you see also contains a process. The browser sometimes optimizes multiple processes into one process, which is the task that can be seen under the task manager. A process contains multiple threads, including js engine threads, rendering threads, event queue threads, timer threads. If there is a corresponding thread open for initiating the request, the js engine thread and the rendering thread are mutually exclusive


see this https://funteas.com/topic/5a6.

Menu