Added  mutex, interruptible and killable functions