Threaded MarkovChain Generator