hang on, that first image is everything on a single thread…
Nah, those are double deckers.
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.
Yeah, I can live with that. Well done!
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
You sure they’re not dwords on a single bus?
Both decks of the bus follow the same [code] path. That’s a lot more like increasing the buffer size.
We’ve been swindled, perhaps even bamboozled!
Each bus is a timeslice
You just know the bottom picture will be used in slides by professors for the next 30 years
At least it won’t be like that infamous Hungarian teacher
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.
Ummm… maybe some more context is needed? That makes no sense
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?
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.
The tasks are all awaiting each other
“Save us, SuperScheduler! Doctor resource-locking has us trapped!”
Serial parralelization…?
I think that’s when you watch two shows at the same time.
That’s why they stack the buses instead of linking them.
All I wanted was to call ‘read’ while I listen on a socket!
Where did it all go so wrong!?




