测试代码:
local function ff1(n)
for i = 1, n do
print('Thread 1 --> \t'..i)
end
end
local function ff2(n)
for i = 1, n do
print('Thread 2 --> \t'..i)
end
end
local function ff3(n)
for i = 1, n do
print('Thread 3 --> \t'+i)--Error code
end
end
local function ff4(n)
for i = 1, n do
print('Thread 4 --> \t'..i)
--systhread.sleep(5)
end
end
local st1 = systhread.create(ff1, 4)
local st2 = systhread.create(ff2, 6)
local st3 = systhread.create(ff3, 8)