Search:

Type: Posts; User: hhbhagat

Search: Search took 0.10 seconds.

  1. Replies
    7
    Views
    980

    Re: Synchronized is blocking

    Well, in my main, I first have it adding strings to the tasks to be completed, and then I have several threads added to a pool where they are left to their own devices getting work from the pool. So...
  2. Replies
    7
    Views
    980

    Re: Synchronized is blocking

    Ok, So I checked it out, and I was getting ConcurrentModificationExceptions out the wazoo. I am guessing that since it was a different thread, those exceptions (that i didn't try-catch) didn't bubble...
  3. Replies
    7
    Views
    980

    Re: Synchronized is blocking

    I had thought that putting synchonized in the method header was a bad thing because it would then lock up the entire class from being accessed by another thread.

    EDIT: I made the method...
  4. Replies
    7
    Views
    980

    Synchronized is blocking

    I'm just starting up with Java Mulithreading.
    Below is the repo I set up, and I am having trouble with this test I am doing playing around with Executor threadpools. I am trying to setup a managed...
Results 1 to 4 of 4