1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
local clib = require 'libthreads' nthread = 1 str='ad;alkfakd;af' code = [[ function func(str) print(str) end; print(str);]] print(code) --thread = clib.Thread(code) --thread:free() require 'threads' tt = threads.Thread(code)