realise MultiThread mode