Under the Hood
Loading visualizer…
DNSresolving host
TCPconnecting
TLShandshake
HTTPrequesting
Initializing Sorting Algorithms...
Sorting
Trees
Graphs
Preparing interactive visualizations...
Under the Hood
Loading visualizer…
From the blocking problem to cooperative multitasking — see exactly how async/await, microtasks, macrotasks, and Python asyncio work under the hood.
One thread. One request at a time.
While waiting for the DB, the thread is blocked.
A synchronous server handles one request at a time. While it waits for the database, the thread is blocked — it cannot do anything else. Three requests each taking ~220 ms will take ~660 ms total.
What is the output order of: console.log(1); setTimeout(()=>console.log(4),0); Promise.resolve().then(()=>console.log(3)); console.log(2);