Writer threads write to shared memory