Java Programming

temporary method definition

tomato13 2008. 7. 31. 16:59

 

    public static int TC11() throws InterruptedException   {
        CThreadInvoker l_oCThreadInvoker;
        int l_nCnt = 0;
        int l_nCntMax = 2;  // an use should implement.
       
        (new CThreadInvoker()    {
            public void run()   {
                m_SetNonFunctionalEnv();
            }
        }).start();

       
        Thread.sleep(1000);
        for(; l_nCnt            l_oCThreadInvoker = new CThreadInvoker();
            l_oCThreadInvoker.start();
        }       
       
        return 1;
    }

 

    public int TC3()    {
        Thread l_oThread1 = (new Thread("Thread 1")    {
            public void run()  {
                while(true)    {
                    System.out.println("Thread 1\n");
                }
            }
        });
      
       
        return 1;
    }