Package csli.util.thread

Interface Summary
AsynchResultCallback  
ElementProcessor Provides a method to process a single element from the processing queue.
 

Class Summary
AsynchResult Used for returning asynchronously from a function.
KillProcess Terminates the process (System.exit) after the specified delay.
ProcessingQueue ProcessingQueue can take elements from many different threads, and process them sequentially on a single processing thread.
ProcessingQueue.Element  
ProcessingQueue.ProcessLoop  
RuntimeExecuteWrapper This is a wrapper around System.getRuntime().exec() that will automatically handle reading from the input/output streams to avoid possible blocks and deadlocks, as mentioned (though not emphasized enough) in the Process class javadoc: "Because some native platforms only provide limited buffer size for standard input and output streams, failure to promptly write the input stream or read the output stream of the subprocess may cause the subprocess to block, and even deadlock." Most calls to System.getRuntime().exec() run without problem, but if you find that it fails by blocking or deadlocking, this class is the answer to your problem.
RuntimeExecuteWrapper.RuntimeExecuteWrapperCallback An easy way to get a callback after a process is done executing.
ThreadTimer Provides a mechanism by which you can monitor how long various methods take to execute.
ThreadUtils