https://en.wikipedia.org/wiki/Subroutine

In computer programming, a subroutine is a sequence of program instructions that perform a specific task, packaged as a unit. This unit can then be used in programs wherever that particular task should be performed.

Subprograms may be defined within programs, or separately in libraries that can be used by multiple programs. In different programming languages, a subroutine may be called a procedure, a function, a routine, a method, or a subprogram. The generic term callable unit is sometimes used.[1]

Subroutines are special cases of ... coroutines.

https://en.wikipedia.org/wiki/Coroutine

Coroutines are computer-program components that generalize subroutines for non-preemptive multitasking, by allowing multiple entry points for suspending and resuming execution at certain locations. Coroutines are well-suited for implementing familiar program components such as cooperative tasksexceptionsevent loopsiteratorsinfinite lists and pipes.

According to Donald KnuthMelvin Conway coined the term coroutine in 1958 when he applied it to construction of an assembly program.[1] The first published explanation of the coroutine appeared later, in 1963.[2]

最新文章

  1. parseInt实例详解
  2. latex+bibtex+jabref(zz)
  3. [转载]关于CSDN, cnblog, iteye和51cto四个博客网站的比较与分析
  4. linux安装gcc-c++
  5. 【游戏周边】Unity,UDK,Unreal Engine4或者CryENGINE——我应该选择哪一个游戏引擎
  6. Vue中父子组件通讯——组件todolist
  7. 无法获得锁 /var/lib/dpkg/lock - open (11: 资源暂时不可用) ...ubuntu 18.04 安装vim遇到的错误
  8. Linux ethtool 命令
  9. FPGA 概述2
  10. 第一次项目上Linux服务器(二:——安装jdk)
  11. SpringBoot2 @validated 类型效验
  12. Windows7下安装cpu版的Tensorflow
  13. 浅谈elasticsearch 集群
  14. 音视频学习系列第(三)篇---wav文件的存储和解析
  15. 客户端、服务器端中JSON字符串与对象的转换
  16. linux-shell-screen后台调用-后台运行脚本和命令-仿start命令-伪窗口界面
  17. AVC的三种规格
  18. C#实现分片上传文件
  19. POJ-3273 Monthly Expense (最大值最小化问题)
  20. extends注意事项

热门文章

  1. node--http小爬虫&事件模块
  2. Spring Boot的web开发&静态资源配置方式
  3. 三读bootmem【转】
  4. 【leetcode】 First Missing Positive
  5. [Web Tools] 实用的Web开发工具
  6. 编译Caffe(ubuntu-15.10-desktop-amd64,无Cuda)
  7. 用AntRun插件测试Maven的生命周期
  8. [转] 32位 PL/SQL Develope r如何连接64位的Oracle 图解
  9. java IOUtils下载图片
  10. Understand the Business Domain