Stochastic processes and their applications Semi markov analysis of some inventory and oueueing problems