摘要:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf- 阅读全文
posted @ 2012-08-06 21:24
Li-鹤鸣
阅读(384)
评论(0)
推荐(0)
摘要:
多线程小实例:创建一个子线程去完成程序的运行工作using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading;namespace Studythread2{ class Program { static void Main(string[] args) { //创建一个线程 Thread thread = new Thread(new ThreadA().Test); //使线程处于就绪状态,没有执行 thread.Start(); } } pub 阅读全文
posted @ 2012-08-06 21:12
Li-鹤鸣
阅读(102)
评论(0)
推荐(0)
摘要:
近些天学习了多线程,闲暇时谈谈自己的对学习到的多线程的认识进程:一个应用程序就是一个进程,一个进程中可以包含多个线程。多线程中一主线程可分很多子线程,但运行当中主,子线程是同时进行的,具体的运行的时间是CPU根据程序给予分配的例如下面的例子:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading;//线程命名空间namespace StudyThread{ class Program { static void Main(string[] a 阅读全文
posted @ 2012-08-06 21:10
Li-鹤鸣
阅读(154)
评论(0)
推荐(0)
摘要:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf- 阅读全文
posted @ 2012-08-06 21:03
Li-鹤鸣
阅读(380)
评论(0)
推荐(0)
摘要:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf- 阅读全文
posted @ 2012-08-06 20:55
Li-鹤鸣
阅读(770)
评论(0)
推荐(0)
浙公网安备 33010602011771号