Class ListenerStarvationTest
java.lang.Object
org.semispace.ListenerStarvationTest
Starvation test. Thanks to Chris Mcfarlen of Yahoo for providing the
scenario and the initial test code.
This test will fail with a large iteration number for reasons not pinpointed at the time of writing.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidsetUp()voidWhen having several listeners and a combination of read and take, it possible for listeners to get starved when competing for resource.
-
Constructor Details
-
ListenerStarvationTest
public ListenerStarvationTest()
-
-
Method Details
-
setUp
-
testStarvation
@Test public void testStarvation()When having several listeners and a combination of read and take, it possible for listeners to get starved when competing for resource. In this test, this happens after 40 missed reads for a given reader.
-