Is this example on condition variable correct ?
Hi I was asked to print 1 to 10. Out of these numbers, thread one will print 1 to 3 and 8 to 10 where as thread two will print 4 to 7. Allso printing should be in ascending order. Is below code proper for this question? https://code.sololearn.com/ca8A12a1498a/?ref=app