Package ptolemy.kernel.util.test
Class TestWorkspace6
- java.lang.Object
-
- ptolemy.kernel.util.test.TestWorkspaceBase
-
- ptolemy.kernel.util.test.TestWorkspace6
-
public class TestWorkspace6 extends TestWorkspaceBase
Test the following scenario: thread T1 gets read access twice, then waits on a lock object (and in doing so, releases the read access); T2 gets/releases write access; T1 is interrupted, and reacquires read access.- Since:
- Ptolemy II 3.0
- Version:
- $Id$
- Author:
- Xiaojun Liu
- Pt.AcceptedRating:
- Red (cxh)
- Pt.ProposedRating:
- Green (eal)
-
-
Field Summary
-
Fields inherited from class ptolemy.kernel.util.test.TestWorkspaceBase
_accessThreads, _record, _testTime
-
-
Constructor Summary
Constructors Constructor Description TestWorkspace6()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
initializeTest()
Create threads that access a workspace in various ways.static void
main(java.lang.String[] args)
void
runTest()
Initialize and run the test.-
Methods inherited from class ptolemy.kernel.util.test.TestWorkspaceBase
profile
-
-
-
-
Method Detail
-
main
public static void main(java.lang.String[] args)
-
initializeTest
public void initializeTest()
Description copied from class:TestWorkspaceBase
Create threads that access a workspace in various ways. List the threads in _accessThreads.- Specified by:
initializeTest
in classTestWorkspaceBase
-
runTest
public void runTest()
Description copied from class:TestWorkspaceBase
Initialize and run the test.- Overrides:
runTest
in classTestWorkspaceBase
-
-