A recursive method to the optimal control of an M/G/1 queueing system with finite capacity and infinite capacity · Study