UI Thread Blocking

The cluster focuses on the single-threaded nature of UI rendering across platforms like web, mobile, and desktop apps, and the critical need to avoid blocking the main UI thread with heavy computations or I/O to maintain responsiveness using techniques like multi-threading or async operations.

πŸ“‰ Falling 0.3x Web Development
1,704
Comments
20
Years Active
5
Top Authors
#8897
Topic ID

Activity Over Time

2007
1
2008
2
2009
15
2010
27
2011
79
2012
81
2013
75
2014
77
2015
103
2016
119
2017
130
2018
80
2019
98
2020
125
2021
151
2022
171
2023
145
2024
113
2025
105
2026
7

Keywords

CPU JS CoreText IM UI AI DNS FooBarWidget XPC i.e ui thread single threaded threaded block operations threads main threading asynchronous

Sample Comments

henriquez β€’ Oct 28, 2021 β€’ View on HN

Performance of UI is mostly single threaded

pjmlp β€’ Mar 19, 2014 β€’ View on HN

Usually because the said developers are too dumb and do everything on the UI thread.

vijaybritto β€’ Dec 7, 2022 β€’ View on HN

It's common for all client apps to not block the main thread be it iOS, Android or Web

coliveira β€’ Dec 16, 2009 β€’ View on HN

This only works if the UI library has good performance. During years this was a big issue in Java, and why it really needed multi-threading.

heavyset_go β€’ May 31, 2020 β€’ View on HN

Sharing the UI thread with logic is something to be mitigated when building UIs, it's not a feature.

steveklabnik β€’ Jan 14, 2026 β€’ View on HN

"don't block the ui thread" is a pretty classic aphorism in any language.

brundolf β€’ Sep 22, 2023 β€’ View on HN

If you're actually doing busy logic then it'll block the UI thread, but you have to work pretty hard to do that, and IO won't block the UI thread

robhu β€’ Oct 2, 2017 β€’ View on HN

Could you please expand on what you mean by the 'ui not being blocked'.What behaviour do you expect the app to have and why?

TimJYoung β€’ Apr 4, 2017 β€’ View on HN

No, not normally. It's fairly rare, and when it does crop up, it is typically handled with pre-baked solutions that are used to spawn a worker thread/process for the purposes of off-loading work from the main UI thread, with minimal communication with the main UI thread via posted messages.

therealdrag0 β€’ Nov 23, 2020 β€’ View on HN

It’s slowness reminds me of blocking on UI threads.