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...
Type: Posts; User: hhbhagat
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...
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...
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...
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...