Register / Login
Win a copy of
Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications
this week in the
this forum made possible by our volunteer staff, including ...
Stephan van Hulst
Web Component Certification (OCEJWCD)
j2ee certificate ques (SingleThreadModel)
posted 11 years ago
Given that a servlet implements the SingleThreadModel inteface, which of the following statements are true? [Check all correct answers] 1. The servlet is guaranteed to be thread-safe. 2. The servlet container guarantees that no two threads will execute concurrently in the servlet's service method. 3. The servlet container may synchronize access to a single instance of the servlet. 4. The servlet container may create multiple copies of the servlet and dispatch each request to the different servlets. ans :) 2,3,4
option 3:y they talk about 2 threads when there will be only one and when no second
exist for the SingleThreadModel for a instance of sevlet..
[ July 15, 2006: Message edited by: singh santosh ]
Boost this thread!
Synchronizing service method
SingleThread Model is deprecated in 2.4
problem of thread safe