When you will synchronize a piece of your code?


When you expect your code will be accessed by different threads and these threads may change a particular data causing data corruption.



Explore posts in the same categories: Java Interview Questions, Operating System Interview Questions


BOOKMARK THIS : del.icio.us | Digg it | Furl | reddit |


Related Questions :

  • What does the keyword “synchronize” mean in java. When do you use it? What are the
  • Synchronize is used when u want to make ur methods thread safe. The disadvantage of synchronise is it will end...
  • What is SYNCHRONIZE?
  • Synchronizes the terminal screen with the internal state of the form. That is SYNCHRONIZE updates the screen display to reflect...
  • What is Smoke Testing?
  • A quick-and-dirty test that the major functions of a piece of software work. Originated in the hardware testing practice of...
  • Describe the advantages of writing a managed code application instead of unmanaged one. What’s involved in certain piece of code being managed?
  • "Advantage includes automatic garbage collection,memory management,security,type checking,versioning Managed code is compiled for the .NET run-time environment. It runs in the Common...
  • Is it legal to have static initializer blocks in EJB?
  • Although technically it is legal, static initializer blocks are used to execute some piece of code before executing any constructor...
  • What SYNCHRONIZE procedure does ?
  • It synchoronizes the terminal screen with the internal state of the form....
  • How do you cut a rectangular cake into two equal pieces when someone has already taken a rectangular piece from it? The removed piece an be any size or at any place in the cake. You are only allowed one straight cut.
  • Slice the cake half-way through the depth of the cake (look through the side of the cake). This way no...
  • How can I comment out a piece of the peoplecode in my program ?
  • REM can be used to comment a single line, but it will be processed by the comp. processor; Single and multiple...
  • What is the role of documentation in QA?
  • Documentation plays a critical role in QA. QA practices should be documented, so that they are repeatable. Specifications, designs, business...
  • What’s the role of documentation in QA?
  • •   Critical. (Note that documentation can be electronic, not necessarily paper.) •   QA practices should...

    Comment:

    You must be logged in to post a comment.