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

Why is a constructor needed in a servlet even if we use the init method?

1107


What is servletconfig?

986


What is the purpose of dispatcherservlet properties?

1037


explain the advantages of servlet life cycle?

935


What are the types of Session Tracking ?

1099


What is the default http method in the servlet?

1251


What is cgi?

961


What is MIME Type?

1102


Why do we have servlet filters?

989


How can you run a servlet program?

1046


Is that servlet is pure java object or not?

1055


What is the need of servlet filters?

961


What is servlet interface?

1175


Which java framework is most popular?

1087


How printwriter is different from servletoutputstream?

965