共 1,393 篇文章
共 6,621 篇文章及评论
博客分类
Blog Roll
- Association for Computing Machinery TechNews (ACM)
- Go Parallel! (Dr. Dobbs)
- HPCwire (Tabor Communications, Inc.)
- insideHPC (John West)
- Joe Duffy's Weblog (Microsoft)
- Microsoft Parallel Programming Development Center (Microsoft Germany)
- MultiCoreInfo.com
- scalability.org (Scalable Informatics)
- Software Dev Blog (Intel Germany)
- Soft Talk Blog (Intel United Kingdom)
- The Moth (Microsoft)
Archives
帖子来自 wangxiaohong123 
多线程知识
作者: wangxiaohong123 (2 篇文章) 日期: 九月 29, 2011 在 11:11 上午
评论 (0)
一:单线程示例 view plainprint? package Thread; import java.io.PrintWriter; public class WithoutThread{ static PrintWriter out = new ...
分类: 博客征文专栏, 并行计算
多线程控制方法
作者: wangxiaohong123 (2 篇文章) 日期: 九月 29, 2011 在 11:10 上午
评论 (5)
1:start():用于开始执行run()方法中定义的线程体 2:sleep():调整java运行时间,指定调用线程的睡眠时间 3:jion():用于调用线程等待本线程结束 4:yield():暂时停止调用线程并将其放在队列末尾,等待另一轮执行,使同一优先级的其他线程有机会运行 view plainprint? import java.io.PrintWriter; public class MethodTest { static PrintWriter out = new ...
