Using 2 threads, one printing odd and one printing even numbers, print 1-200 in order (busy wait and wait/notify)
Asked in the Round 2 stage. Implement a function that returns the ordered sequence produced by the two threads, once using busy waiting and once using wait/notify style synchronization.
def print_numbers(limit):
limit, an integer upper bound.busy_wait and wait_notify, each containing the list of numbers printed by that strategy.1 to limit exactly once, in increasing order.def print_numbers(limit):