You can  have single threaded and multi threaded versions of  libs... a
language could have this information in each lib and only allow single
threaded libs loaded  ( or choose a single threaded version) in a single
threaded environment and visa versa.. This can be useful when calling
legacy code as well ,  something thats useful in system programming but a
hassle in GP programming.

Ben


On Fri, Aug 2, 2013 at 1:21 AM, Jonathan S. Shapiro <[email protected]>wrote:

> On Thu, Aug 1, 2013 at 12:55 AM, William ML Leslie <
> [email protected]> wrote:
>
>> If the compiler knows that
>> the program is single-threaded, a lot of the preconditions for
>> optimisation get a lot simpler.
>
>
> Yes. But in the presence of dynamic loading infrastructure or separate
> compilation, the compiler cannot know that. The JIT system might be able to
> know that.
>
>
> _______________________________________________
> bitc-dev mailing list
> [email protected]
> http://www.coyotos.org/mailman/listinfo/bitc-dev
>
>
_______________________________________________
bitc-dev mailing list
[email protected]
http://www.coyotos.org/mailman/listinfo/bitc-dev

Reply via email to