www.pudn.com > CS_threadTest_20110820B.rar > Class1.cs, change:2011-08-20,size:764b


// this program created by bill.zhang, in 8/20,2011; 
// the program just for test the delegrate function as c&c++ callback function; 
// and the program for the task management as the mini OS; 
 
using System; 
using System.Collections.Generic; 
using System.Text; 
using System.Threading; 
 
 
 
namespace CS_threadTest 
{ 
    public partial class Class1 
    { 
        public delegate void testthread(); 
        public testthread testthreadapp = null; 
        public static void func1() 
        { 
            for (; ; ) 
            { 
                 
            } 
        } 
        public void test() 
        { 
            //Thread ThreadApp = new Thread(func1); 
            //ThreadApp.Start(); 
            testthreadapp(); 
        } 
    } 
}