In Java thread topic, the task to be executed and the thread to drive the task are two concepts should be clarified. The working process is like the following:

  1. Create one task
  2. Create one thread to be attached on your created task.

In Java, thread is not the task itself. The Runnable interface is used to describe the real task. Also, the name of Runnable is a bad choice for describing its job.

So, let's summarize these concepts with Java code:

[Concepts: Java Implementation]

  • task: described by Java interface Runnable.
  • mechanism to drive task: Java's Thread class.

最新文章

  1. Win7系统修改hosts文件不能保存的解决方法
  2. python set集合操作
  3. spring ioc 原理 spring aop原理
  4. string.Join和string.Concat的区别
  5. Spark系列(三)SparkContext分析
  6. SPRING IN ACTION 第4版笔记-第二章WIRING BEANS-007-以set方法注入<property>\p-namespace\util-space
  7. chrome 插件 vimium 快捷键大全
  8. HTML 动态显示系统当前时间
  9. BZOJ 3357: [Usaco2004]等差数列( dp )
  10. 代码用于脚本语言开发平台Script.NET即将开源
  11. 模板语言变量,js变量,js自执行函数之前嵌套调用
  12. Ubuntu16.04安装和配置RabbitMQ
  13. mybatis 日志的使用以及设计
  14. 如何计算Java对象所占内存的大小
  15. EF 控制code-first生成的数据库表名的单复数
  16. 第三章 列表(b)无序列表
  17. ArcGIS Engine Maplex Label(标注)使用一例(转)
  18. Oracle 12C -- plug unplugged PDB into CDB
  19. 在C语言中除法运算为什么没有小数部分?
  20. Cisco配置发送日志到日志服务器

热门文章

  1. elasticsearch Java API汇总
  2. win32api 获取文件版本信息
  3. Eclipse 反编译插件安装jad
  4. JavaScript parseInt() toString()函数
  5. 【转】详解Python的装饰器
  6. 一个叫 team 的表,里面只有一个字段name, 一共有4 条纪录,分别是a,b,c,d, 对应四个球队,现在四个球队进行比赛,用一条sql 语句显示所有可能的比赛组合.
  7. Git创建 项目
  8. jquery_easyui 相关问题
  9. BZOJ3175 Tjoi2013 攻击装置(二分图匹配)
  10. Poj-2250-Compromise