Redian新闻
>
使用CPython要避免多线程?
avatar
使用CPython要避免多线程?# Programming - 葵花宝典
f*y
1
应该只有一个位置,但好像可以申请assistant, associate 或者full,如果有3个人分
别申请这3个title,通常来说想申请full prof更加qualified一点,更加有经验一点,
是不是这个人比较容易入围,?
avatar
kx
2
【 以下文字转载自 sysop 讨论区 】
发信人: walklooktalk (千红一窟), 信区: sysop
标 题: Re: 8.12.*.* 被老刑block了?
发信站: BBS 未名空间站 (Tue Dec 22 10:32:13 2009, 北京)
不好意思,有人通过你的网站来捣乱,一口气注册了几万个ID,连着好几天了。
你要愿意配合兄弟把他揪出来,我这就解封。
avatar
w*n
4
不是

【在 f******y 的大作中提到】
: 应该只有一个位置,但好像可以申请assistant, associate 或者full,如果有3个人分
: 别申请这3个title,通常来说想申请full prof更加qualified一点,更加有经验一点,
: 是不是这个人比较容易入围,?

avatar
p*o
5
欢欢?
avatar
d*q
6
yep...thread implementation of python 2.x sucks..so try to avoid threads.
use multi process for cpu intensive tasks
and async IO or coroutine for io tasks.
avatar
w*g
7
not necessary,
think the situation:
you want to hire a full professor, generally you need to give him/her tenure
. how do you know this guy is not a nasty person. consequently, you will
be hesitating to give the tenure directly unless you know the guy very well.
for assistant professor, you will not be that concerned because no tenure
decision involved.
avatar
m*m
8
hoho

【在 kx 的大作中提到】
: 【 以下文字转载自 sysop 讨论区 】
: 发信人: walklooktalk (千红一窟), 信区: sysop
: 标 题: Re: 8.12.*.* 被老刑block了?
: 发信站: BBS 未名空间站 (Tue Dec 22 10:32:13 2009, 北京)
: 不好意思,有人通过你的网站来捣乱,一口气注册了几万个ID,连着好几天了。
: 你要愿意配合兄弟把他揪出来,我这就解封。

avatar
l*8
9
Thanks!
And GIL is still there in CPython 3.1. I hope the problem will be solved
soon.

【在 d***q 的大作中提到】
: yep...thread implementation of python 2.x sucks..so try to avoid threads.
: use multi process for cpu intensive tasks
: and async IO or coroutine for io tasks.

avatar
b*d
10
要求不一样.
avatar
p*o
11
GIL in CPython is likely to exist forever.
积重难返

【在 l*********8 的大作中提到】
: Thanks!
: And GIL is still there in CPython 3.1. I hope the problem will be solved
: soon.

avatar
f*y
12
it sounds reasonable.thanks

tenure
well.

【在 w******g 的大作中提到】
: not necessary,
: think the situation:
: you want to hire a full professor, generally you need to give him/her tenure
: . how do you know this guy is not a nasty person. consequently, you will
: be hesitating to give the tenure directly unless you know the guy very well.
: for assistant professor, you will not be that concerned because no tenure
: decision involved.

avatar
d*q
13

Because python use reference-counting so it would be quite hard to remove
GIL completely.
If you are really care about this issue there are two options:
1: you may try pypy & its experimental module: STM it is said that STM has
already worked with multi cores directly. However it is far away from
production usage.
2: use other implementations like Jython, IronPython or event other
languages..

【在 l*********8 的大作中提到】
: Thanks!
: And GIL is still there in CPython 3.1. I hope the problem will be solved
: soon.

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。