lua-users home
lua-l archive

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


On Mon, Oct 27, 2008 at 10:52 AM, Петров Александр <gmdidro@gmail.com> wrote:

> The question - Is it normal to have 500...1000 coroutines in program ?
> Don't that cause system resources leak ?

no problem at all.  coroutines are FAR lighter than processes or
threads, not uncommon to have tens of thousandths.

just be sure not to have any reference to an unused one, so the GC can
dispose them.

-- 
Javier