What is synchronization?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do threads block on i/o?

670


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

562


What is the purpose of the wait() method?

609


What modifiers may be used with an interface declaration?

548


we use MainFrame and using os390 for operating system with DB2 data base in IRAN and interest programing with java and use webspere for world wide,please help me where i should start?

1909






Explain the advantages and disadvantages of detached objects.

568


Explain the steps in details to load the server object dynamically?

4536


Can I import same package/class twice? Will the jvm load the package twice at runtime?

637


What is the difference between the string and stringbuffer classes?

531


Should synchronization primitives be used on bean methods?

541


What is the difference between long.class and long.type?

551


Explain the different types of memory used by jvm?

596


Brief description about local interfaces?

614


Write a singleton program?

560


What are the steps to write p-to-p model application?

1948