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
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
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
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
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
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
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
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
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
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
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
11 matches
Mail list logo