Create a class buns
Bao Zipu
defined buns member variable, generated with parameters constructor buns
succession Thread thread class. Override the run method. Ensure that only one in execution, so the use synchronization
wait to try catch
the outer layer defined variables, the number indicating the production of buns
produce a good wake-up buns
plus a while loop