what is the difference between sleep() and Wait()?
Answer Posted / vijay
Sleep():
Pause for NUMBER seconds. SUFFIX may be 's' for seconds
(the default), 'm' for minutes, 'h' for hours or 'd' for
days. Unlike most implementations that require NUMBER be
an integer, here NUMBER may be an arbitrary floating point
number.
Wait():
The wait function suspends execution of the current
process until a child has exited, or until a signal is
delivered whose action is to terminate the current
process or to call a signal handling function. If a child
has already exited by the time of the call (a so-
called "zombie" process), the function returns
immediately. Any system resources used by the child are
freed.
Is This Answer Correct ? | 5 Yes | 14 No |
Post New Answer View All Answers
Define Multiprogramming and Multiprocessing in java.
What is anti pattern in java?
Are maps ordered java?
Difference between static synchronization vs. Instance synchronization?
What is strings in java?
What is the difference between integer parseint and integer valueof?
make a method which any number and any type of argument and print sum of that arguments.....
How many types of constructors are used in java?
What is protected in java?
Program to Find the second largest element in an array.
What is the indent key?
How the interruptible method gets implemented?
What is finally block?
What is a conditional equation?
Does apple use java?