Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Is Servlet Class Thread safe?????? How to make servlet
Thread safe ???

Answer Posted / samba

NO.
Servlet is not thread safe.it allows to access more than one
thread at a time.IF we want to make servlet as a thread safe
then make service method is synchronized or implement
SingleThreadModel interface.There is no methods in this
interface.

Is This Answer Correct ?    21 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the web server used for running the Servlets?

1011


How do we translate jsp?

1048


What does the term localization refer to?

1102


What is the GenericServlet class?

1222


What are different methods of session management in servlets?

1269


What are the life cycle methods of the servlet?

1079


What is the use of httpservletrequestwrapper?

1087


Explain web application directory arrangement?

1060


What are different ways for servlet authentication?

1098


Why do you use session tracking in httpservlet?

1126


Write the code to get the server information in servlet.

1053


A client sends requests to two different web components. Both of the components access the session. Will they end up using the same session object or different session ?

1080


What is generic servlet class?

1061


What are the types of servlet?

1291


What are some disadvantages of storing session state in cookies?

1015