Concurrency torture: testing your code within the Java Memory Model | zeroturnaround.com
JCStress is a test harness that is created specifically to fiddle with these kinds of questions.
What we use here is an Actor2_Arbiter1_Test<BitSet, BooleanResult2> interface, which will humbly provide us with method stubs for our two threads and a method to convert a result in a form of BitSet state into a pair of booleans.
Read full article from Concurrency torture: testing your code within the Java Memory Model | zeroturnaround.com
JCStress is a test harness that is created specifically to fiddle with these kinds of questions.
What we use here is an Actor2_Arbiter1_Test<BitSet, BooleanResult2> interface, which will humbly provide us with method stubs for our two threads and a method to convert a result in a form of BitSet state into a pair of booleans.
Read full article from Concurrency torture: testing your code within the Java Memory Model | zeroturnaround.com
No comments:
Post a Comment