What is the main difference between wait() and sleep() method?



What is the main difference between wait() and sleep() method?..

Answer / Ruby Kumari Saha

The wait() method in Java puts a thread to sleep until it's notified by another thread, typically used in conjunction with notify() and notifyAll(). The sleep() method simply causes the current thread to pause its execution for a specified amount of time.n

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Operating Systems General Concepts Interview Questions

Difference between short term, long term and medium term scheduler.

1 Answers   Tech Mahindra,


Difference between Primary storage and secondary storage?

1 Answers  


What is the difference between primary & secondary storage device?

11 Answers  


What is a 32 bit integer?

1 Answers  


How are data structures handled by ntfs and how does it recover from a crash?

1 Answers  


Explain the resident set and working set of a process?

1 Answers  


Can you run 32 bit applications on a 64 bit operating system?

1 Answers  


Define trashing?

1 Answers  


At what mode the fault handler executes?

1 Answers  


What do you mean by semaphore?

1 Answers  


What do you understand by system clock?

1 Answers  


How are data structures handled by ntfs?

1 Answers  


Categories