Deadlock in Single threaded application
deadlock, multithreading, single-threaded
Solution
Yes, a single-threaded application can deadlock if you have locks that are not re-entrant and a thread attempts to reacquire a lock that it owns already (like via a recursive call).
Edit: I see that the post has been tagged "Java"; I don't know if that was an update or if I missed it before, but in any case locks in Java ARE re-entrant, so you won't be able to deadlock a single-threaded application in this manner.
Problem
Can a single threaded application have a deadlock? If so, please provide an example.