thread context switch

1. If a thread goes to sleep state(or nanosleep) will context switch happens??
2. If a thread is waiting conditionally on a queue i.e., a call to cond_wait_queue will context switch happens?
yes and yes
Thanks a lot smith
Topic archived. No new replies allowed.