由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
_Python版 - can not start thread
相关主题
create table on SQL server from python pyodbc (转载)请问pthread_join()和pthread_yield()的区别。
重复利用threads的问题multi-threading guru们
为什么多个线程生成的随机数是一样的?面了一个startup
一直没有很好理解thread join itself,哪位解惑一下 (转载)复习C++ multithreading的书
Help needed, about pthread...只会C++和基本data structure,algorithm能找什么样的工作?
一个multithread的问题(是不是有人觉的很简单?)请教多线程的入门书
如果一个core,多线程还有必要吗?MITBBS 面试题第一题
一个thread如何kill另外一个thread?LinkedIn 面经
相关话题的讨论汇总
话题: thread话题: start话题: threads话题: using话题: os
1 (共1页)
e**u
发帖数: 409
1
写程序时报错,
File "/usr/lib/python2.4/threading.py", line 416, in start
_start_new_thread(self.__bootstrap, ())
thread.error: can't start new thread
只能到300多个thread,
如果改了ulimit的上限到unlimited最多也只能到500个thread
报同样的错
怎么才能解决呢?
多谢
i*****f
发帖数: 578
2
i found this artible here.
http://www.velocityreviews.com/forums/t347990-thread-limit-in-python.html
it seems not to be a language thing, since the author did the same thing in
pthread and reached the same limit as in python. he thought it might be an
os imposed limit.
it maybe simply that you are using too much system resources that it can't
support creating more threads. should you try a thread pool instead?

【在 e**u 的大作中提到】
: 写程序时报错,
: File "/usr/lib/python2.4/threading.py", line 416, in start
: _start_new_thread(self.__bootstrap, ())
: thread.error: can't start new thread
: 只能到300多个thread,
: 如果改了ulimit的上限到unlimited最多也只能到500个thread
: 报同样的错
: 怎么才能解决呢?
: 多谢

m*****g
发帖数: 54
3
If you really really need that many threads, you need use 64 bit OS.
That said, using thread is not free, It is crazy for one process to try to
create more than 300 threads. using
thread pool sound like a better approach

【在 e**u 的大作中提到】
: 写程序时报错,
: File "/usr/lib/python2.4/threading.py", line 416, in start
: _start_new_thread(self.__bootstrap, ())
: thread.error: can't start new thread
: 只能到300多个thread,
: 如果改了ulimit的上限到unlimited最多也只能到500个thread
: 报同样的错
: 怎么才能解决呢?
: 多谢

1 (共1页)
相关主题
LinkedIn 面经Help needed, about pthread...
请问C++ threading w/ lock free algorithms一个multithread的问题(是不是有人觉的很简单?)
Basic thread question如果一个core,多线程还有必要吗?
如何确保多线程程序在 multicore server 用所有 core一个thread如何kill另外一个thread?
create table on SQL server from python pyodbc (转载)请问pthread_join()和pthread_yield()的区别。
重复利用threads的问题multi-threading guru们
为什么多个线程生成的随机数是一样的?面了一个startup
一直没有很好理解thread join itself,哪位解惑一下 (转载)复习C++ multithreading的书
相关话题的讨论汇总
话题: thread话题: start话题: threads话题: using话题: os