this post was submitted on 03 May 2026
298 points (97.5% liked)

Programmer Humor

31403 readers
928 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] mkwt@lemmy.world 2 points 1 week ago (1 children)

A spinning circle requires just two threads, one to do the work and one to spin the circle. And they don't have to talk to each other.

A progress bar is the same thing, but now the work thread has to periodically communicate the progress to the bar thread, and inter-thread synchronization has to be setup. And how do you know how much progress a single file transfer represents? Or how many progress points is a registry edit versus a file transfer? It's hard to figure out in advance, which is why so many progress bars are shitty estimates of progress.

[โ€“] nightlily@leminal.space 4 points 1 week ago

I mean we used to just put them on the same thread and block the window message handling loop, causing Windows to freak out. And we liked it.