News for hackers. Stuff that matters.
Re:Data Race Patterns in Go by bumper_crop on Monday June 20, 2022 @09:06PM (#31818489)
Make sure to read between the lines. It only looks like a busy loop. Remember, the OS can pause and preempt your thread at any time. This is a real and likely event.
Re:Data Race Patterns in Go by mbnull on Saturday July 02, 2022 @06:59AM (#31957938)
By reading the lines and not between them, you could read these two lines: runtime_procPin() and runtime_procUnpin(). With explicit comments that these pause preemption.