Class 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)
    • Constructor Detail

      • TestWorkspace6

        public TestWorkspace6()
    • 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 class TestWorkspaceBase