News for hackers. Stuff that matters.
Re:The best engineering interview question I've ever gotten by jseban on Monday April 18, 2022 @05:02AM (#31068672)
The key word here being "probably".
Re:The best engineering interview question I've ever gotten by FartyMcFarter on Monday April 18, 2022 @05:07AM (#31068697)
Yes - so the safe thing to do is to put the lock outside the loop. Anyone experienced in multithreading will instinctively know this is the correct alternative for any codebase (and it performs better too).