Hacker News new | ask | show | jobs
by anth_anm 2666 days ago
Thread finishes work

grabs lock

writes to file

writes to index

releases lock

That's not a race condition. The output order doesn't matter, but it is nondeterministic.