Hacker News new | past | comments | ask | show | jobs | submit login

How is anything other than threads supposed to be a solution to long-running tasks blocking the UI thread?



Which long running tasks?

Blocking IO? Switch to non blocking and events.

Long running computationally expensive work? Break it into small jobs and have your job queue be a priority queue.

At that point you're correct regardless of if you've got one thread or many servicing the queue. And generally the best way to take advantage of multiple cores os to have it be totally agnostic to the number of cores it's running on like this anyway.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: