use Mutex to enhance the multi-thead