665
Multithreading (lemmy.world)
you are viewing a single comment's thread
view the rest of the comments
[-] Warl0k3@lemmy.world 100 points 2 days ago

hang on, that first image is everything on a single thread...

[-] ZILtoid1991@lemmy.world 48 points 2 days ago

Nah, those are double deckers.

[-] Warl0k3@lemmy.world 26 points 2 days ago* (last edited 2 days ago)

Making the word bigger doesn't mean there's more threads per, it just reduces the number of calls to complete some kinds of ops (and something about RAMing busses into each other and... cache locations? idk I'm sleepy)

[-] ZILtoid1991@lemmy.world 8 points 2 days ago

The double deckers are an example of a ready-made solution in the original language's standard library, the lower one is getting multithreading working through the C ABI bindings, using some 3rd party solution, all while multithreading a lot of other tasks in the application.

[-] Warl0k3@lemmy.world 5 points 2 days ago

Yeah, I can live with that. Well done!

[-] ozymandias@lemmy.dbzer0.com 3 points 2 days ago

nah, then each bus’s beginning and end would be restarting the whole program… the first picture should be a five lane freeway at rush hour

[-] Ajen@sh.itjust.works 4 points 2 days ago

Both decks of the bus follow the same [code] path. That's a lot more like increasing the buffer size.

[-] JeeBaiChow@lemmy.world 10 points 2 days ago

You sure they're not dwords on a single bus?

[-] sunbeam60@feddit.uk 2 points 2 days ago
[-] Harvey656@lemmy.world 7 points 2 days ago

We've been swindled, perhaps even bamboozled!

[-] SpaceNoodle@lemmy.world 2 points 2 days ago

Each bus is a timeslice

this post was submitted on 26 Nov 2025
665 points (99.4% liked)

Programmer Humor

27534 readers
255 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