So, when it will execute this section, so it will be finding that this while loop condition has become false because by sitting this waiting j equal to false, so when j becomes equal to i plus 2, so this waiting i plus 2 has become false.
j=i+2 करने पर waiting=false भी सेट हो जाता है।