2008/8/21 Curt Hagenlocher <[EMAIL PROTECTED]>:
> Where IronPython is "worse" than CPython in this regard is that it takes us
> longer to import a module.  This increases the chance for a collision in an
> application where modules may be imported from multiple threads.

No, IronPython is "worse" in that its importer is not locked. CPython has
(in addition to Global Interpreter Lock, since imported module can be
a C extension)
a lock around its importer: see imp.acquire_lock and imp.release_lock. Since
import can cause another import, this is a reentrant lock.

-- 
Seo Sanghyeon
_______________________________________________
Users mailing list
Users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to