Package com.sun.jini.thread


package com.sun.jini.thread
These are utility classes and interfaces for helping with tasks done in multiple threads. Some utilities (such as InProgress) provide synchronization mechanisms. Others, such as TaskManager, provide utilities for managing the creation of multiple threads to do independent tasks.
  • Class
    Description
    Executor is an abstraction for a thread factory or thread pool for executing actions asynchronously.
    Provides security-checked access to internal thread pools as a java.security.PrivilegedAction, to be used conveniently with an AccessController.doPrivileged or Security.doPrivileged.
    Common Thread subclass to handle potential loss of interrupted status.
    A PrivilegedAction for creating a new thread conveniently with an AccessController.doPrivileged or Security.doPrivileged.
    An Object to control the concurrent state.
    InterruptedException transformed to a runtime exception.
    Utility class used to prevent access to a service before it has completed its initialization or after it starts to shutdown.
     
    A task manager manages a single queue of tasks, and some number of worker threads.
    The interface that tasks must implement
    Permission to use internal thread pools (see GetThreadPoolAction).
    A Queue of timed tasks.
    Description of a future thread.
    A ticket that can be used for cancelling a future task.