Introduction - If you have any usage issues, please Google them yourself
Suppose there were 1000 tickets, 10 threads were created, 10 tickets were sold, and each ticket sold one ticket in 100 milliseconds. Please simulate and print the ticket selling process. Pay attention to using synchronized to ensure that the same ticket can only be sold once. The output format is as follows:
Fourth tickets sold 100th tickets, second tickets sold 101st tickets......