When you will synchronize your code?

Answer Posted / ranganathkini

synchronize is used on objects that will be used by
multiple threads to provide thread safety. It is used so
that concurrent threads get valid access to data to perform
their actions

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why are some of the class and element names counter-intuitive?

855


How to pass parameters in RMI?

2015


How primary key is implemented in Oracle?

2184


What is the map interface?

888


What is colon_pkg_prefixes and what is its use?

2250


What do you need to set-up a cluster with jboss?

842


What is a class loader?

1082


How to determine SGA site?

2208


A user of a web application sees a jsessionid argument in the URL whenever a resource is accessed. What does this mean? a. The form must have the field jsessionid b. URL rewriting is used as the session method c. Cookies are used for managing sessions

2056


Explain RMI Architecture?

864


What are the difference between RMI and CORBA?

865


What is Remote Server?

1924


How messaging services are done, before release of JMS?

1856


Explain the advantages and disadvantages of detached objects.

830


Will the general public have access to the infobus apis?

822