lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


2011/11/16 Thijs Koerselman <thijskoerselman@gmail.com>:
> On Tue, Nov 15, 2011 at 11:34 PM, Hisham <hisham.hm@gmail.com> wrote:
>
> Thanks, that seem to have worked. I'm still getting the same behavior
> though. I can try it on Ubuntu on thursday.
> What are possible alternatives in case I can't get this to work?
> Thijs

Do you get the same kind of behavior with lanes that don't do
os.execute? For example, if you do:

local lanes = require "lanes".configure(1)
print( os.date())
local linda = lanes.linda()
lanes.gen("os,base", function() linda:receive(10, "null")
print("finished_sleeping " .. os.date()) end)()
lanes.gen("os,base", function() linda:receive(10, "null")
print("finished_sleeping " .. os.date()) end)()
lanes.gen("os,base", function() linda:receive(10, "null")
print("finished_sleeping " .. os.date()) end)()
lanes.gen("os,base", function() linda:receive(10, "null")
print("finished_sleeping " .. os.date()) end)()

Maybe this is related to the way os.execute works?



-- 
Benoit.