Multhreaded branch

the pull request is for the changes related to DQM related to Multithreading