摘要: 项目中用到了多线程,而且是1000线程并发运行,发现内存占用过高,于是对项目里用到的对象逐个测试,发现是线程对象占用内存 Thread[] threads = new Thread[1000]; for(int i = 0; i<threads.Length; i++) { (threads[i] = new Thread(new ThreadStart(delegate() { Thread.Sleep(100000); ... 阅读全文
posted @ 2012-04-10 10:04 Hanf 阅读(7938) 评论(0) 推荐(2) 编辑
Copyright © 2008-2016 Hanf All Rights Reserved