Setup files and have thread2 read input.