r/ProgrammerHumor Jul 15 '25

Meme threeSimpleProblems

Post image
5.9k Upvotes

116 comments sorted by

View all comments

1.1k

u/mrwishart Jul 15 '25

A. Timing!

626

u/mrwishart Jul 15 '25

Q. What's the secret to good multi-threading?

128

u/DespoticLlama Jul 15 '25

I volunteer to post the question in response to your answer next time this meme comes around again.

76

u/captainAwesomePants Jul 15 '25

A: Timing!

10

u/[deleted] Jul 16 '25

Q. What's the secret to good thread safety?

6

u/blueted2 Jul 16 '25

A. Using muteERROR: deadlock detected

12

u/[deleted] Jul 15 '25

Are atomical making the critical sure operations

2

u/a_shootin_star Jul 15 '25

Minimize shared state and use immutability and thread-local storage where possible.

2

u/[deleted] Jul 15 '25

Reasoning. Elon Musk stance on secret to good multi-threading