Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Wha? The UI needs to keep processing events to remain responsive. If you have a long-running (relatively speaking, say 10 milliseconds) process like uncompressing an image, you don't want your UI to lag for that long.

You could have the image decompressor look up every millisecond or so to see if there are any UI events to process, but that leads to the sort of spaghetti code that multithreading/multitasking was built to address.



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

Search: