【问题标题】:There is a type named thread in lua. Does anyone know something of this?lua 中有一个类型叫做线程。有人知道吗?
【发布时间】:2010-06-24 12:15:05
【问题描述】:

我正在阅读 lua 手册(寻找一些东西),我发现 lua 中有一个名为 thread 的类型。我读过它代表独立的执行线程,它用于实现协程。

这是我阅读的地方的链接。
http://www.lua.org/manual/5.1/manual.html#2.2

如何使用这些线程?有什么好的教程吗?
我用谷歌搜索过,但没有运气。

【问题讨论】:

    标签: multithreading lua types


    【解决方案1】:

    我建议您查看Co-routine tutorial 看看是否对您有帮助。

    【讨论】:

      猜你喜欢
      • 2014-08-28
      • 1970-01-01
      • 2017-11-04
      • 2011-03-31
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多