Update wait vs sleep vs yield method