Alberto, thank you very much for your reply (ant patience!).
Anyway, one question more, sorry ;-).
Your answer is exactly what I've been thinking, but then another question pops up: what is then, the usage pattern of sq_newthread? I do not know if I can explain me well, what I'd like to know is when sq_newthread should be used, what kind of problem does it address?
Looking around the 'net, I've found an article about Lua threads, where it says that is possible to compile Lua specifying an implementation for a lua_lock/unlock call (
http://lua-users.org/wiki/ThreadsTutorial ).
What are your thoughts about this? DO you plan to add such a features in squirrel? (look, I'm not saying that I want this, but rather, I'm thrying to understand the mysterious (for me) world of multithreading in Squirrel/Lua).
Thanks again for the good work, I'm using squirrel extensively in one of my projects, and it is really fun to use!
Riccardo