Search:

Type: Posts; User: helloworld922

Search: Search took 0.23 seconds.

  1. Replies
    12
    Views
    2,606

    Re: When to Synchronize Code

    True, you should use synchronize when required. However, don't blindly believe that simply adding synchronized methods/blocks will solve all of your multi-threading problems, or is even a good...
  2. Replies
    12
    Views
    2,606

    Re: When to Synchronize Code

    Adding synchronization does slow down your code. Every time the program encounters a synchronized section the program must acquire a lock for the object being synchronized. This is an expensive...
Results 1 to 2 of 2