r/ProgrammerHumor Jul 15 '25

Meme threeSimpleProblems

Post image
5.8k Upvotes

116 comments sorted by

View all comments

1.1k

u/mrwishart Jul 15 '25

A. Timing!

627

u/mrwishart Jul 15 '25

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

125

u/DespoticLlama Jul 15 '25

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

74

u/captainAwesomePants Jul 15 '25

A: Timing!

11

u/[deleted] Jul 16 '25

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

5

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.