(a) Describe an application that can deadlock, or starve a thread.
(b) Include code snippet (small code, does not have to be full blown application) to demonstrate deadlock, or starve a thread. This could be a few lines of code (as much as needed) to just demonstrate the concept.
(c) Describe a testing strategy that would detect such a problem efficiently.