Title :
Testing Java interrupts and timed waits
Author :
Wildman, Luke ; Long, Brad ; Strooper, Paul
Author_Institution :
Sch. of Inf. Technol. & Electr. Eng., Queensland Univ., Qld., Australia
fDate :
30 Nov.-3 Dec. 2004
Abstract :
Testing concurrent software is difficult due to problems with inherent nondeterminism. In previous work, we have presented a method and tool support for the testing of concurrent Java components. In this paper, we extend that work by presenting and discussing techniques for testing Java thread interrupts and timed waits. Testing thread interrupts is important because every Java component that calls wait must have code dealing with these interrupts. For a component that uses interrupts and timed waits to provide its basic functionality, the ability to test these features is clearly even more important. We discuss the application of the techniques and tool support to one such component, which is a nontrivial implementation of the readers-writers problem.
Keywords :
Java; distributed programming; interrupts; program testing; Java thread interrupt; concurrent Java component; concurrent software testing; readers-writers problem; timed wait; Application software; Australia; Concurrent computing; Information technology; Java; Monitoring; Sequential analysis; Software testing; Software tools; Yarn;
Conference_Titel :
Software Engineering Conference, 2004. 11th Asia-Pacific
Print_ISBN :
0-7695-2245-9
DOI :
10.1109/APSEC.2004.97