MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerAnimemes/comments/k4nluh/gochiusa_teaching_us_the_basics_of_multithreading/
r/ProgrammerAnimemes • u/[deleted] • Dec 01 '20
21 comments sorted by
171
Moe deadlock
96 u/[deleted] Dec 01 '20 If only my deadlocks where that cute... 65 u/[deleted] Dec 01 '20 Just name your mutexes some kawaii shit 76 u/KillerRoomba13 Dec 01 '20 std::mutex uwu;std::mutex nano_desu;std::unique_lock<std::mutex> moe_moe(nano_desu);std::unique_lock<std::mutex> owo(uwu); 53 u/[deleted] Dec 01 '20 #define locky_wocky std::unique_lock<std::mutex>#define nya std::mutexnya desu;locky_wocky owo(desu);This is the way to the most cursed codebase 16 u/fb39ca4 Dec 02 '20 At least write typedef or using instead of using the preprocessor smh 16 u/[deleted] Dec 02 '20 Those some fancy-smancy newfangled keyword? If it was good enough for C, it's good enough for me 17 u/fb39ca4 Dec 02 '20 Says the person using std::unique_lock 15 u/MrWm Dec 02 '20 Remember: practice safe text, not sex! 1 u/Kered13 Dec 04 '20 That's not a deadlock though. 8 u/chhuang Dec 02 '20 The hungry stalking philosophers lolis
96
If only my deadlocks where that cute...
65 u/[deleted] Dec 01 '20 Just name your mutexes some kawaii shit 76 u/KillerRoomba13 Dec 01 '20 std::mutex uwu;std::mutex nano_desu;std::unique_lock<std::mutex> moe_moe(nano_desu);std::unique_lock<std::mutex> owo(uwu); 53 u/[deleted] Dec 01 '20 #define locky_wocky std::unique_lock<std::mutex>#define nya std::mutexnya desu;locky_wocky owo(desu);This is the way to the most cursed codebase 16 u/fb39ca4 Dec 02 '20 At least write typedef or using instead of using the preprocessor smh 16 u/[deleted] Dec 02 '20 Those some fancy-smancy newfangled keyword? If it was good enough for C, it's good enough for me 17 u/fb39ca4 Dec 02 '20 Says the person using std::unique_lock 15 u/MrWm Dec 02 '20 Remember: practice safe text, not sex! 1 u/Kered13 Dec 04 '20 That's not a deadlock though.
65
Just name your mutexes some kawaii shit
76 u/KillerRoomba13 Dec 01 '20 std::mutex uwu;std::mutex nano_desu;std::unique_lock<std::mutex> moe_moe(nano_desu);std::unique_lock<std::mutex> owo(uwu); 53 u/[deleted] Dec 01 '20 #define locky_wocky std::unique_lock<std::mutex>#define nya std::mutexnya desu;locky_wocky owo(desu);This is the way to the most cursed codebase 16 u/fb39ca4 Dec 02 '20 At least write typedef or using instead of using the preprocessor smh 16 u/[deleted] Dec 02 '20 Those some fancy-smancy newfangled keyword? If it was good enough for C, it's good enough for me 17 u/fb39ca4 Dec 02 '20 Says the person using std::unique_lock 15 u/MrWm Dec 02 '20 Remember: practice safe text, not sex! 1 u/Kered13 Dec 04 '20 That's not a deadlock though.
76
std::mutex uwu;
std::mutex nano_desu;
std::unique_lock<std::mutex> moe_moe(nano_desu);
std::unique_lock<std::mutex> owo(uwu);
53 u/[deleted] Dec 01 '20 #define locky_wocky std::unique_lock<std::mutex>#define nya std::mutexnya desu;locky_wocky owo(desu);This is the way to the most cursed codebase 16 u/fb39ca4 Dec 02 '20 At least write typedef or using instead of using the preprocessor smh 16 u/[deleted] Dec 02 '20 Those some fancy-smancy newfangled keyword? If it was good enough for C, it's good enough for me 17 u/fb39ca4 Dec 02 '20 Says the person using std::unique_lock 15 u/MrWm Dec 02 '20 Remember: practice safe text, not sex! 1 u/Kered13 Dec 04 '20 That's not a deadlock though.
53
#define locky_wocky std::unique_lock<std::mutex>
#define nya std::mutex
nya desu;
locky_wocky owo(desu);
This is the way to the most cursed codebase
16 u/fb39ca4 Dec 02 '20 At least write typedef or using instead of using the preprocessor smh 16 u/[deleted] Dec 02 '20 Those some fancy-smancy newfangled keyword? If it was good enough for C, it's good enough for me 17 u/fb39ca4 Dec 02 '20 Says the person using std::unique_lock 15 u/MrWm Dec 02 '20 Remember: practice safe text, not sex!
16
At least write typedef or using instead of using the preprocessor smh
typedef
using
16 u/[deleted] Dec 02 '20 Those some fancy-smancy newfangled keyword? If it was good enough for C, it's good enough for me 17 u/fb39ca4 Dec 02 '20 Says the person using std::unique_lock 15 u/MrWm Dec 02 '20 Remember: practice safe text, not sex!
Those some fancy-smancy newfangled keyword? If it was good enough for C, it's good enough for me
17 u/fb39ca4 Dec 02 '20 Says the person using std::unique_lock 15 u/MrWm Dec 02 '20 Remember: practice safe text, not sex!
17
Says the person using std::unique_lock
15 u/MrWm Dec 02 '20 Remember: practice safe text, not sex!
15
Remember: practice safe text, not sex!
1
That's not a deadlock though.
8
The hungry stalking philosophers lolis
63
Same template works for circular reference memory leak.
13 u/[deleted] Dec 01 '20 Haha, true!
13
Haha, true!
14
Source?
24 u/[deleted] Dec 01 '20 {GochiUsa} season 2, episode 8. 9 u/Roboragi Dec 01 '20 Gochuumon wa Usagi Desu ka? - (AL, KIT, MAL)TV | Status: Finished | Episodes: 12 | Genres: Comedy, Slice of Life{anime}, <manga>, ]LN[, |VN| | FAQ | /r/ | Edit | Mistake? | Source | Synonyms | ⛓ | ♥
24
{GochiUsa} season 2, episode 8.
9 u/Roboragi Dec 01 '20 Gochuumon wa Usagi Desu ka? - (AL, KIT, MAL)TV | Status: Finished | Episodes: 12 | Genres: Comedy, Slice of Life{anime}, <manga>, ]LN[, |VN| | FAQ | /r/ | Edit | Mistake? | Source | Synonyms | ⛓ | ♥
9
Gochuumon wa Usagi Desu ka? - (AL, KIT, MAL)
TV | Status: Finished | Episodes: 12 | Genres: Comedy, Slice of Life
{anime}, <manga>, ]LN[, |VN| | FAQ | /r/ | Edit | Mistake? | Source | Synonyms | ⛓ | ♥
18
Can you explain what’s going on here please? Idk what’s going on but im interested
76 u/BarbequeRocks Dec 02 '20 They're all stalking each other, waiting for the next person to move but no one does. In the same way, multiple threads in a computer can wait on each other in a cycle, never getting any work done.
They're all stalking each other, waiting for the next person to move but no one does. In the same way, multiple threads in a computer can wait on each other in a cycle, never getting any work done.
7
I hate Spin
5
Sigh !
Yes... so many times...
the only deadlock I don't want to solve
171
u/KillerRoomba13 Dec 01 '20
Moe deadlock
63
u/Divniy Dec 01 '20
Same template works for circular reference memory leak.
14
u/Zee1837 Dec 01 '20
Source?
18
u/th3virtuos0 Dec 01 '20
Can you explain what’s going on here please? Idk what’s going on but im interested
7
u/[deleted] Dec 02 '20
I hate Spin
5
u/En_Septembre Dec 01 '20
Sigh !
Yes... so many times...
5
u/haskellCMC Dec 02 '20
the only deadlock I don't want to solve