Which is the best one to use sleep or delay ( for a delay in the process ) .As i understand use of sleep, allows the kernel to schedule the process.
And if a sleep of microseconds is used, and the kernel schedules at this time, will it takes care to reschedule the interrupted process, back in the requested amount of sleep the process had asked for ( as the other process which the kernel witched to may take long time to give back the control).
Thanks
And if a sleep of microseconds is used, and the kernel schedules at this time, will it takes care to reschedule the interrupted process, back in the requested amount of sleep the process had asked for ( as the other process which the kernel witched to may take long time to give back the control).
Thanks
Comment