Written thread_yield()