Class ThreadTest

  • All Implemented Interfaces:
    java.lang.Runnable

    public class ThreadTest
    extends java.lang.Object
    implements java.lang.Runnable
    A very silly test to verify that the System.in/out/err overrides are inherited by child threads. A bunch of numbers and thread ids are displayed to the client's stdout. The important thing is that all threads launched by the nail are writing to the same client.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String name  
    • Constructor Summary

      Constructors 
      Constructor Description
      ThreadTest​(java.lang.String name)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] args)  
      void run()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • name

        private java.lang.String name
    • Constructor Detail

      • ThreadTest

        public ThreadTest​(java.lang.String name)
    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable
      • main

        public static void main​(java.lang.String[] args)