adding threading parameter into configuration file. replace the fixed config by getting the core number