I'm required to enumerate through a directory and its sub-directories and print all the files metadata to a file.. However, Every time I get inside a sub-dir I'm required to spawn a thread that should do the printing...
The whole idea for this is to practice synchronizing the threads so that when they print the results it doesn't come out messed up..
The thing is I'm not using any synchronizing mechanism, and the result comes out organized.. How is that possible?