make quit global variable volatile
cleanup multithreaded distribution, remove some mfences and cachelines contention