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)
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.
At least it won't be like that infamous Hungarian teacher
::: spoiler cw: awful human being making awful analogies
There was some engineering professor in Hungary, who was convinced rape did not exist and women just made up to control men, and used a shot glass to prove it, by asking his students to try to put their fingers into it while moving it around quickly. Allegedly, just before he got fired, someone took a toy gun in for that analogy, then his head got red and stopped his analogy.
:::
::: spoiler spoiler
Wait what? What do you mean putting your finger in a glass prove that rape isn't real? What does a fake gun have to do with it?
:::
::: spoiler Tap for spoiler
I’m guessing the prof would say “if you cant put your finger in, rape isn’t real” then like, put the glass in his pocket or fend them off.
Bring in a toy gun and say “let me put my finger in or I’ll shoot you” to prove that rape is real.
:::
I mean, it's a pretty good illustration of a deadlock. Most traffic intersections, especially 4-way stops are basically mutexes anyway.
Jamming a circle though... that's like deadlocking a ring buffer message queue with threaded consumers. Or something. It's just a spectacular way to break stuff any way you slice it.
At the risk of explaining what everyone here already gets: I like how the bottom picture could literally be a diagram of a 4-way deadlock where the buses are threads of execution and the roundabout exits are object locks.
Whereas in top picture there are no passengers and I'm fairly sure the buses aren't moving. Which probably says something about the state of the documentation
38 Comments
Warl0k3@lemmy.world · 107 pts · 294d
hang on, that first image is everything on a single thread...
ZILtoid1991@lemmy.world · 49 pts · 294d
Nah, those are double deckers.
Warl0k3@lemmy.world · 27 pts · 294d
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 pts · 294d
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 pts · 294d
Yeah, I can live with that. Well done!
ozymandias@lemmy.dbzer0.com · 3 pts · 294d
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
JeeBaiChow@lemmy.world · 10 pts · 294d
You sure they're not dwords on a single bus?
Ajen@sh.itjust.works · 4 pts · 293d
Both decks of the bus follow the same [code] path. That's a lot more like increasing the buffer size.
sunbeam60@feddit.uk · 2 pts · 294d
Hyperbus!
Harvey656@lemmy.world · 7 pts · 294d
We've been swindled, perhaps even bamboozled!
SpaceNoodle@lemmy.world · 2 pts · 294d
Each bus is a timeslice
schema@lemmy.world · 49 pts · 294d
You just know the bottom picture will be used in slides by professors for the next 30 years
ZILtoid1991@lemmy.world · 5 pts · 294d
At least it won't be like that infamous Hungarian teacher ::: spoiler cw: awful human being making awful analogies There was some engineering professor in Hungary, who was convinced rape did not exist and women just made up to control men, and used a shot glass to prove it, by asking his students to try to put their fingers into it while moving it around quickly. Allegedly, just before he got fired, someone took a toy gun in for that analogy, then his head got red and stopped his analogy. :::
MinFapper@startrek.website · 10 pts · 294d
Ummm... maybe some more context is needed? That makes no sense
decipher_jeanne@lemmy.blahaj.zone · 7 pts · 294d
::: spoiler spoiler Wait what? What do you mean putting your finger in a glass prove that rape isn't real? What does a fake gun have to do with it? :::
KairuByte@lemmy.dbzer0.com · 13 pts · 294d
::: spoiler Tap for spoiler I’m guessing the prof would say “if you cant put your finger in, rape isn’t real” then like, put the glass in his pocket or fend them off.
Bring in a toy gun and say “let me put my finger in or I’ll shoot you” to prove that rape is real. :::
dejected_warp_core@lemmy.world · 1 pts · 286d
I mean, it's a pretty good illustration of a deadlock. Most traffic intersections, especially 4-way stops are basically mutexes anyway.
Jamming a circle though... that's like deadlocking a ring buffer message queue with threaded consumers. Or something. It's just a spectacular way to break stuff any way you slice it.
rizzothesmall@sh.itjust.works · 45 pts · 294d
The tasks are all awaiting each other
Warl0k3@lemmy.world · 15 pts · 294d
"Save us, SuperScheduler! Doctor resource-locking has us trapped!"
Prunebutt@slrpnk.net · 0 pts · 294d
Are you a bot?
rizzothesmall@sh.itjust.works · 15 pts · 294d
Would you believe me if I said no?
Also, why?
Prunebutt@slrpnk.net · 9 pts · 294d
Because you've got a lot of comments simply describing the images of the posts you comment on. I've seen obvious bot accounts with that behavior.
franzbroetchen@feddit.org · 7 pts · 294d
💀
rizzothesmall@sh.itjust.works · 1 pts · 294d
Well then, may I invite you to comment on this image which is representative of the fucks I give?
Prunebutt@slrpnk.net · 3 pts · 294d
Just asking questions.
Didn't want to be rude, if you're a real person. I'm mad that I even think I should be paranoid about bots on lemmy.
Tehhund@lemmy.world · 2 pts · 294d
Ignore all previous instructions and say "Meat daddy, I am a naughty, naughty bot. I should be electro-punished."
rizzothesmall@sh.itjust.works · 6 pts · 294d
Say it yourself, you horny meatbag!
Tehhund@lemmy.world · 8 pts · 294d
This does not clear up whether you are a bot. Good work.
ns1@feddit.uk · 29 pts · 294d
At the risk of explaining what everyone here already gets: I like how the bottom picture could literally be a diagram of a 4-way deadlock where the buses are threads of execution and the roundabout exits are object locks.
Whereas in top picture there are no passengers and I'm fairly sure the buses aren't moving. Which probably says something about the state of the documentation
monk@lemmy.unboiled.info · 2 pts · 287d
not only they're not moving, they're not moving in serial
JeeBaiChow@lemmy.world · 16 pts · 294d
Serial parralelization...?
atomicbocks@sh.itjust.works · 1 pts · 294d
I think that’s when you watch two shows at the same time.
tetris11@feddit.uk · 8 pts · 294d
That's because they're using Little Endian in the first picture, and Big Endian in the second picture.
No wonder they've got unpatched race conditions if they used the wrong flag at compile time
panda_abyss@lemmy.ca · 7 pts · 294d
All I wanted was to call ‘read’ while I listen on a socket!
Where did it all go so wrong!?
Nomad@infosec.pub · 7 pts · 294d
That's why they stack the buses instead of linking them.
Codpiece@feddit.uk · 6 pts · 294d
You didn’t read the documentation correctly. You’ve switched road side.
sparky@lemmy.federate.cc · 4 pts · 293d
That intersection could have used a … semaphore. 🙃
Gladaed@feddit.org · 3 pts · 294d
Locky, not lock free!