I have one text file that needs to be read by two threads, but I need to make the reading sequentially. Example: Thread 1 gets the lock and read first line, lock is free. Thread 2 gets the lock and read line 2, and so goes on. I was thinking in sharing the same buffer reader or something like that, but I'm not so sure about it. Thanks in advance!
EDITED
Will be 2 classes each one with a thread. Those 2 classes will read the same file.