Printing even and odd numbers alternately using two different threads