Description: 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......
To Search:
File list (Check if you may need any files):
Train
Train\.classpath
Train\.project
Train\.settings
Train\.settings\org.eclipse.jdt.core.prefs
Train\bin
Train\bin\Resource.class
Train\bin\Seller.class
Train\bin\Test.class
Train\src
Train\src\Test.java