Jython有GIL吗? [英] Does Jython have the GIL?

查看:159
本文介绍了Jython有GIL吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我确定还没有,但是在Interweb上寻找明确的答案使我感到疑惑.例如,我收到了 2008帖子,其中乍一看就像是在开玩笑,但看上去却很认真.

I was sure that it hasn't, but looking for a definite answer on the Interwebs left me in doubt. For example, I got a 2008 post which sort of looked like a joke at first glance but seemed to be serious at looking closer.

......看起来更近了,简直是个笑话.对困惑感到抱歉.正如Nikhil正确指出的那样,实际上该帖子的评论回答了我的问题.

... and turned out to be a joke after looking even closer. Sorry for the confusion. Actually the comments on that post answer my question, as Nikhil has pointed out correctly.

我们意识到CPython在这一领域遥遥领先,并且我们缺乏兼容性.经过认真的头脑风暴(和几杯酒),我们决定在Jython中引入Global Interpreter Lock可以解决整个问题!

We realized that CPython is far ahead of us in this area, and that we are lacking in compatibility. After serious brainstorming (and a few glasses of wine), we decided that introducing a Global Interpreter Lock in Jython would solve the entire issue!

现在,这里的状态如何? sourceforge上的差异"页面根本没有提到GIL.我有没有忽略任何官方消息?

Now, what's the status here? The "differences" page on sourceforge doesn't mention the GIL at all. Is there any official source I have overlooked?

还请注意,我知道正在进行的讨论是否对GIL至关重要,但是我暂时不在乎.

Note also that I'm aware of the ongoing discussion whether the GIL matters at all, but I don't care about that for the moment.

推荐答案

不,不是.这是VM实施的一部分,而不是语言.

No, it does not. It's a part of the VM implementation, not the language.

另请参阅:

from __future__ import braces

这篇关于Jython有GIL吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆