JS Multi Threadrd
JS Multi Threadrd
a multi-threaded
language?
Single-threaded
JavaScript is traditionally a
single-threaded language, but
thanks to asynchronous
functions and Web Workers, it
can simulate multi-threaded
behavior.
A B C
What is asynchronous
JavaScript?
Microtask
Macrotask
Queue Queue
Event loop
fetch
DOM
Execution Order
Synchronous Cod
Microtasks (Promise callbacks
Macrotasks (setTimeout)
Limitations of
Asynchronous JavaScript
Worker
How does it work?
Execution:
Worker
How does it work?
Termination:
Worker
How can Web Workers help?