Top
Best
New

Posted by luu 4/15/2025

The case of the UI thread that hung in a kernel call(devblogs.microsoft.com)
143 points | 48 commentspage 2
frabona 4/15/2025|
Such a clean breakdown. "Don’t suspend your own threads" should be tattooed on every Windows dev’s arm at this point
makz 4/15/2025||
Looking at the title, at first I thought “uh?”, but then I saw microsoft and it made sense.
baruchthescribe 4/16/2025||
>Naturally, a suspended UI thread is going to manifest itself as a hang.

The correct terminology is 'stopped responding' Raymond. You need to consult the style guide.

brcmthrowaway 4/15/2025|
Can this happen with Grand Central Dispatch ?
saagarjha 4/16/2025||
This is a complicated question. If you "suspend" a GCD queue using the traditional APIs then it will happen between block execution, which is unlikely to cause problems, because people do not typically take locks between different items. But if you suspend the thread that backs the queue (using thread_suspend) you will definitely run into problems unless you're really careful.
immibis 4/15/2025||
did... did you understand what the bug was?