what is diffference between delay ,sleep & wait…which one to use when?please clarify.
what is diffference between delay ,sleep & wait…which one to use when?please clarify.
EmbLogic Research & Competency Development Labs
Phone: +91 9818467776, 8527567776, 9650467776
Email: info@emblogic.com
Copyright © EmbLogic Embedded Technologies Pvt. Ltd.
wait system call will halt your parent until one of the child process terminates.
if we use of waitpid(pid) system call, then parent process will suspend its execution until the child process specified by pid terminates.
sleep system call will suspend the execution of process for the time specified as argument
DELAY is basically the wasting of machine cycle (time) or we can say that providing time within execution of two commands….
WAIT is like waiting for a particular process to complete…..
Sleep is, according to me the time period when no process is taking place …..(not so sure abt sleep) .
correct me if i am wrong..
@ nitin sahrama : so, is sleep and delay are similar????