Package ptolemy.kernel.util.test
Class TestWorkspace4
- java.lang.Object
 - 
- ptolemy.kernel.util.test.TestWorkspaceBase
 - 
- ptolemy.kernel.util.test.TestWorkspace4
 
 
 
- 
public class TestWorkspace4 extends TestWorkspaceBase
Test the following scenario: thread T1 gets write access; T2 waits for read access and is interrupted, then waits for read access again; T1 releases write access; T2 gets/releases read access; another thread T3 gets write access; T2 handles failure (being interrupted) in getting 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 TestWorkspace4() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinitializeTest()Create threads that access a workspace in various ways.voidrunTest()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:TestWorkspaceBaseCreate threads that access a workspace in various ways. List the threads in _accessThreads.- Specified by:
 initializeTestin classTestWorkspaceBase
 
- 
runTest
public void runTest()
Description copied from class:TestWorkspaceBaseInitialize and run the test.- Overrides:
 runTestin classTestWorkspaceBase
 
 - 
 
 -