线程相互等待

来源:互联网 发布:android 短信软件 编辑:程序博客网 时间:2024/06/08 06:11
//传统多线程
        //            Thread raster1Thread = new Thread(new ThreadStart(delegate() { GetResustRaster1(irbc1, band1, band2); }));
        //            raster1Thread.Name = "早期影像线程";
        //            Thread raster2Thread = new Thread(new ThreadStart(delegate() { GetResustRaster2(irbc2, band1, band2); }));
        //            raster2Thread.Name = "晚期影像线程";


        //            raster1Thread.Start();
        //            raster2Thread.Start();


        //            raster1Thread.Join();
        //            raster2Thread.Join();
        //            raster1Thread.Abort();
        //            raster2Thread.Abort();
0 0