Help needed getting started with threads!

Thank you for the suggestion @danielwe. Unfortunately, adding @sync doesn’t seem to have made a difference. The files still aren’t being written.

I was trying to model my approach off this advice, which also doesn’t use @sync.