小新的技术天地

Make It Works !

博客园 首页 新随笔 联系 订阅 管理

2004年12月9日 #

摘要: 要是一个线程进行到一半,想终止了,怎么办呢?请看代码: using System;using System.Threading;class ThreadTest{ //工作线程的方法 public static void WorkerThreadMethod1() { //获得当前正在执行的线程对象 Thread w1 = Thread.Curren... 阅读全文
posted @ 2004-12-09 15:28 小新0574 阅读(23362) 评论(2) 推荐(0) 编辑

摘要: 请看代码: using System;using System.Threading;class ThreadTest{ //工作线程的方法 public static void WorkerThreadMethod() { //获得当前正在执行的线程对象 Thread w1 = Thread.CurrentThread; w1.Name... 阅读全文
posted @ 2004-12-09 14:03 小新0574 阅读(1089) 评论(0) 推荐(0) 编辑

摘要: 文章较长,请见: http://www.cnblogs.com/wdxinren/articles/74657.html 阅读全文
posted @ 2004-12-09 01:01 小新0574 阅读(1194) 评论(0) 推荐(0) 编辑

摘要: 作者:Alex Farber 翻译:小新0574 原文链接:http://www.codeproject.com/csharp/workerthread.asp Introduction The .NET framework provides a lot of ways to implement multithreading programs. I want to show how... 阅读全文
posted @ 2004-12-09 00:59 小新0574 阅读(2978) 评论(0) 推荐(0) 编辑