Could you please advise how we can create a deadlock in servlet, On way which I was thinking was one simple way to call doPost() method inside doGet() and doGet()method inside doPost() it will create deadlock situation for a servlet. Please advise are there any other ways.
Share
Deploy servlet below and invoke it few times.