This question may sound stupid (and it probably is), but, I have a problem in understanding the code when threads are automatically created by the web container - Tomcat.
My understanding is Tomcat uses a threadpool, and uses a separate thread for processing each request. However, I don't see any code in our codebase that does any synchronization around some shared data. Now, I understand that request processing is independent, and they don't need to pass any data to each other, but I don't think our codebase has absolutely no shared data.
My question is how do I conceptualize the web application code into threads communicating with each other, and their shared data?