This content has been marked as final.
Show 2 replies
-
1. Re: Is SingleThreadModel used by default for servlets?
ctomc Jul 19, 2017 9:00 AM (in response to tdanecito)no they are not SingleThreadModel, unless you mark them as such.
doGet and doPost are thread safe as each servlet runs in its own thread.
-
2. Re: Is SingleThreadModel used by default for servlets?
tdanecito Jul 19, 2017 12:29 PM (in response to ctomc)Thanks Tomaz. If that is the case then each request gets its own servlet instance and since each request is stateless then the methods are thread safe?