What is synchronization?
Answers were Sorted based on User's Feedback
Answer / janet
Synchronization is the mechanism that ensures that only one
thread is accessed the resource at a time.
Is This Answer Correct ? | 6 Yes | 0 No |
Answer / mahipal reddy.kaitha
 Synchronized keyword can be applied to methods or
parts of the methods only.
 Synchronize keyword is used to control the access
to critical code in multi-threaded programming.
Is This Answer Correct ? | 4 Yes | 0 No |
Answer / ranjani
It is a mechanism which is used to provide the priority for
multiple thread programs to avoid the deadlock condition.
Is This Answer Correct ? | 4 Yes | 0 No |
Answer / devarathnam c,kotagudibanda(po
Hi...
Synchronization:It is a mechanism of controlling the shared
resource againist the multiple processes inorder to provide
the concurrent access.
Is This Answer Correct ? | 3 Yes | 0 No |
Answer / akshay
If there is a portion of code within a method or the
complete method that can be accessed by multiple threads,
that section of code is called critical section. To make
sure that only one thread can access critical section at a
time, we synchronize critical section. Synchronization is
the keyword to avoid concurrent access to critical section
of the code.
Is This Answer Correct ? | 3 Yes | 0 No |
Answer / nadesh.k
It is a mechanism which is used to provide the priority for
multiple thread programs to avoid the deadlock condition.
Is This Answer Correct ? | 2 Yes | 0 No |
list the types of dialodg
what is the proxy pattern?
diff between jsp include directive and jsp action include?
If we opened Windows Internet Explorer 4 times, does it starts 4 processes or 4 threads?
What does module-relative mean?
how we can implement interface in jsp ?
What is difference RMI registry and OSAgent?
What are skeletons and stubs and how they are generated?
Will it be called overriding if I do not change the parameters or return type, instead throw a different exception in the method signature.
1) which method of the RequestDispatcher cannot be called once the output is sent to the client? a. forward b. include c. both a&b 2) which interface should an object implement to get notified of changes to the list of active sessions in a web application? a. HttpSessionListener b. HttpSessionActivationListener c. HttpSessionAttributeLIstener 3) A user can select multiple locations from a list box on an HTML form, which of the following methods can be used to retrieve all the selected location? a. getParameter() b. getParameterValues() c. getParamValues() 4) which of the following methods should be used to send character text to the client? a. ServletResponse.getWriter() b. ServletResponse.getOutputStream() c. ServletResponse.getOut() 5) which implicit object is always available in a JSP page? a. exception b. session c. out 6) which inclusion mechanism doesn't include the source of the page, rather the output of the page. a. include directive b. jsp:include action c. Bothe a& b 7) which attribute of the page controls whether a page participates in session or not? a. session-allowed b. session c. isSession
Is the ternary operator written x : y ? Z or x ? Y : z ?
Explain the steps in details to load the server object dynamically?