Re: What's the difference between a "coroutine" and a "thread" in Lua?
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: What's the difference between a "coroutine" and a "thread" in Lua?
- From: "Aaron Brown" <arundelo@...>
- Date: 2007年8月10日 01:58:01 -0400
John Klimek wrote:
Are Lua "coroutines" and "threads" the same exact thing?
Yes:
Lua 5.1.2 Copyright (C) 1994-2007 Lua.org, PUC-Rio
print(type(coroutine.create(function() end)))
thread
The non-Lua type of thread can be referred to as an "OS
thread".
--
Aaron
http://arundelo.com/