What is wrong if thread 1 and 2 not finished yet when main thread completes?
What is the link or dependency between the main and the 2 other threads?
Servlets should not be spawning threads. It's a violation of the J2EE specification and it can potentially corrupt not only the webapp, but the entire webapp container.
That new kid is a freak. Show him this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koophttps://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton