Relative Content

Tag Archive for javamultithreadingfail-fast

Generate Fail Fast scenario using Multiple Thread in JAVA

I need a scenario to generate ConcurrentModificationException using multi-thread. Please have a look at the below code, here I am getting IllegalThreadStateException.
Not sure why this is happening and also what could be the correct example for my scenario.

Generate Fail Fast scenario using Multiple Thread in JAVA

I need a scenario to generate ConcurrentModificationException using multi-thread. Please have a look at the below code, here I am getting IllegalThreadStateException.
Not sure why this is happening and also what could be the correct example for my scenario.