Re: multithreading in python

2013-08-13 Thread Terry Reedy
On 8/13/2013 4:06 AM, samaneh.yahyap...@gmail.com wrote: Aside from the other comments... def item_thread(self): imageAnalyzer=ctypes.CDLL("../so/image_process.so") imageAnalyzer.aref_img_score_init("/opt/amniran/etc/face.xml", "/opt/amniran/etc/porn.xml") for f

Re: multithreading in python

2013-08-13 Thread Dave Angel
samaneh.yahyap...@gmail.com wrote: > hi > my program work by 4 thread but when i use more thread it terminates > > how can i solve this problem I simplified the code so I could actually run it, and tested it in Python 2.7, both under Komodo IDE and in the terminal. The code: #!/usr/bin/en

Re: multithreading in python

2013-08-13 Thread Dave Angel
samaneh.yahyap...@gmail.com wrote: > hi > my program work by 4 thread but when i use more thread it terminates > > I simplified your code so anybody could run it, and tested it inside Komodo IDE, on Python 2.7 #!/usr/bin/env python import sys import os import time import threading class MyC

Re: multithreading in python

2013-08-13 Thread Steven D'Aprano
On Tue, 13 Aug 2013 01:06:01 -0700, samaneh.yahyapour wrote: > hi > my program work by 4 thread but when i use more thread it terminates Is that a problem? Isn't it supposed to terminate, when it has finished? If it raises an exception, or crashes, you should tell us. > i use opencv in my ima

multithreading in python

2013-08-13 Thread samaneh . yahyapour
hi my program work by 4 thread but when i use more thread it terminates i use opencv in my image_process.so my code is : #!/usr/bin/python import sys import os import io import time import copy import threading import ctypes class MyClass(): def __init__(self): i = 0

Re: multithreading in python

2009-05-12 Thread Almar Klein
See the standard help on the threading and thread module. Almar 2009/5/12 shruti surve : > hi, >  how to do multithreading in python??? Like running dialog box and running > xml rpc calls simultaneously??? > > > regards > shruti > > -- > http://mail.python.or

multithreading in python

2009-05-12 Thread shruti surve
hi, how to do multithreading in python??? Like running dialog box and running xml rpc calls simultaneously??? regards shruti -- http://mail.python.org/mailman/listinfo/python-list

Re: multithreading in python ???

2008-07-10 Thread Kris Kennaway
Laszlo Nagy wrote: Abhishek Asthana wrote: Hi all , I have large set of data computation and I want to break it into small batches and assign it to different threads .I am implementing it in python only. Kindly help what all libraries should I refer to implement the multithreading in

Re: multithreading in python ???

2008-07-03 Thread mimi.vx
on only. Kindly help what all libraries should I refer to > > implement the multithreading in python. > > You should not do this. Python can handle multiple threads but they > always use the same processor. (at least in CPython.) In order to take > advantage of multiple processors

Re: multithreading in python ???

2008-07-03 Thread Laszlo Nagy
Abhishek Asthana wrote: Hi all , I have large set of data computation and I want to break it into small batches and assign it to different threads .I am implementing it in python only. Kindly help what all libraries should I refer to implement the multithreading in python. You should not

multithreading in python ???

2008-07-03 Thread Abhishek Asthana
Hi all , I have large set of data computation and I want to break it into small batches and assign it to different threads .I am implementing it in python only. Kindly help what all libraries should I refer to implement the multithreading in python. Thanks , Abhishek CAUTION