A threshold policy in a Markov-modulated production system with server vacation: the case of continuous and batch supplies. (29th November 2018)