public class TestWorkspace2 extends java.lang.Thread
Modifier and Type | Class and Description |
---|---|
class |
TestWorkspace2.Notification
Repeatedly calls notifyAll on itself to wake up any threads waiting
on it.
|
Modifier and Type | Field and Description |
---|---|
Workspace |
_workspace |
java.lang.String |
profile |
Constructor and Description |
---|
TestWorkspace2(java.lang.String name,
Workspace workspace) |
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args) |
java.lang.String |
profile()
Return a profile which contains the various actions performed by this
object.
|
void |
run()
Start a thread for an instance of the inner class "Notification",
obtain read access on the workspace 3 times, call wait(obj) on the
workspace, ask the inner class to get a write access on the workspace
and return after relinquishing the read accesses on the workspace.
|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
public Workspace _workspace
public java.lang.String profile
public TestWorkspace2(java.lang.String name, Workspace workspace)
public static void main(java.lang.String[] args)
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public java.lang.String profile()