ekho: pthread_join will be blocked when called pause, so I added isBlocked to pause, resume and stop work well :)