Package ptolemy.kernel.util.test
Class TestWorkspace5
- java.lang.Object
-
- ptolemy.kernel.util.test.TestWorkspaceBase
-
- ptolemy.kernel.util.test.TestWorkspace5
-
public class TestWorkspace5 extends TestWorkspaceBase
Test the following scenario: thread T1 gets read access; T2 waits for write access and is interrupted, then waits for write access again; T1 releases read access; T2 gets/releases write access; another thread T3 gets read access; T2 handles failure (being interrupted) in getting write 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 TestWorkspace5()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
initializeTest()
Create threads that access a workspace in various ways.void
runTest()
Initialize and run the test.-
Methods inherited from class ptolemy.kernel.util.test.TestWorkspaceBase
profile
-
-
-
-
Method Detail
-
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
-
-