MultiThreading
1.Explain multithreading,multitasking and multiprocessing?
Ans:
2.What is Live Lock in threading,explain with real example.
Answer: A husband and wife are trying to eat soup, but only have one spoon between them. Each spouse is too polite, and will pass the spoon if the other has not yet eaten is an example of live lock.
here husband and wife can be consider as two thread and spoon is resource.
2.What is Live Lock in threading,explain with real example.
Answer: A husband and wife are trying to eat soup, but only have one spoon between them. Each spouse is too polite, and will pass the spoon if the other has not yet eaten is an example of live lock.
here husband and wife can be consider as two thread and spoon is resource.