Real time control of stochastic manufacturing systems with jump Semi-Markov