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)