Dave Tolls wrote:Couldn't you just create a new PropertiesValue in each new thread?
It doesn't look like you need to store any results in it from the various runs.
Paul Clapham wrote:
khaled abu shamat wrote:Paul my validatePatternAndCheckCase method is synchronised
I see. And you did that because if two threads accessed the method at the same time then it would cause problems?
my validatePatternAndCheckCase methos is synchronised
Paul Clapham wrote:I think perhaps if the work the threads are doing took a lot longer, you might get them running at the same time. Maybe put some Thread.sleep calls in there to slow them down? I don't see anything in there which would prevent those threads from starting and doing their work right away.