There are 2 files, one file is having even numbers and other is having odd numbers. There will be 2 threads Odd Thread and Even Thread. Odd thread should print odd numbers and even thread should print even numbers from the respective files.
need to write a code to print the numbers sequentially. starting with odd thread then even thread alternatively.
OutPut: 1 2 3 4 5 6 7 etc.,