Re: multithreading in python

2013-08-13 Thread Terry Reedy
On 8/13/2013 4:06 AM, [email protected] 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
[email protected] 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
[email protected] 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

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.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 pytho

Re: multithreading in python ???

2008-07-03 Thread mimi.vx
On Jul 3, 12:40 pm, Laszlo Nagy <[EMAIL PROTECTED]> 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 s

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