tweak: rearranged the creating file operation
feature: writer thread is now ready to generate a periodic signal