concurrency and reading from a file