Thread management in a Web application is forbidden in some circumstances and is always highly error prone.