Concept Flow - Web workers for heavy computation
Main Thread starts task
Create Web Worker
Send data to Worker
Worker runs heavy computation
Worker sends result back
Main Thread receives result
Update UI with result
End
The main thread creates a web worker to run heavy tasks separately, sends data to it, waits for the result, then updates the UI without freezing.