which one is the best practice using synchronization method
or synchronization block
Answer Posted / prajakta lakhe
synchronization block is the best practice to implement
synchronization. It allows us to synchronize the method whose
source code we dont know. and also this style helps us to
synchronize the particular block of code,where multiple
processes or threads can use a single resource at a time.
Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
4. What is the need of START 0? Instead if can we use any other numeric? If we use what will happen?
how many types of bytes are there???
why not instantiating servet using new operator?
What is the difference between DECISION COVERAGE(DC) and MODIFIED CONDITION/DECISION COVERAGE(MCDC)?
What is the use of sas software? Is sas and sap are different?
Please forward important interview and basic questions in VB6 on my email id: usneha_16@yahoo.co.in
design a counter with the following repeated binary sequence: 0, 1, 2, 3, 4, 5, 6, 7, 8 using JK Flip Flop.
what is the difference between Windows application and Unix application?
Write a function which accepts a sentence as input parameter.Each word in that sentence is to be reversed. Space should be there between each words.Return the sentence with reversed words to main function and produce the required output. for eg:- i/p: jack jill jung kill o/p: kcaj llij gnuj llik
Busy waiting is a method whereas a taskwaits for a given event by continiously checking for an event to occur. What is the main problem with this approach
which book we learned this mantis? how many version are realsed this mantis upto now?
write a query that returns one row for each department and the number of employees in that department. Given two tables EMPLOYEE and DEPARTMENT, where there can be multiple employees per department.
What is the meaning of client-server application. The purpose of Client-Server Application. with description.
what is best way to create a Thread class & why?
Given a Binary Search Tree, write a program to print the kth smallest element without using any static/global variable. You can?t pass the value k to any function also.