Re: Threading in Python, Please check the script

2015-01-14 Thread sohcahtoa82
On Tuesday, January 13, 2015 at 10:22:32 PM UTC-8, Robert Clove wrote: > Hi All, > > I have made a script in which i have started two thread named thread 1 and > thread 2. > In thread 1 one function will run named func1 and in thread 2 function 2 will > run named func 2. > Thread 1 will execute

Re: Threading in Python, Please check the script

2015-01-14 Thread Dave Angel
On 01/14/2015 07:11 AM, Robert Clove wrote: Can u provide me the pseudo script. You say you're a beginner. If so, you shouldn't be trying to use threads, which are tricky. I've been programming for 46 years, and I seldom have had to write multi-threading code. But this looks like a school

Re: Threading in Python, Please check the script

2015-01-14 Thread Robert Clove
Can u provide me the pseudo script. On Wed, Jan 14, 2015 at 4:10 PM, Dave Angel wrote: > On 01/14/2015 01:22 AM, Robert Clove wrote: > >> Hi All, >> >> > In any new thread, you should specify what versions of Python and OS > you're using. I'll assume Python 2.7 and Linux for this message. > >

Re: Threading in Python, Please check the script

2015-01-14 Thread Dave Angel
On 01/14/2015 01:22 AM, Robert Clove wrote: Hi All, In any new thread, you should specify what versions of Python and OS you're using. I'll assume Python 2.7 and Linux for this message. I have made a script in which i have started two thread named thread 1 and thread 2. In thread 1 one fu

Re: Threading In Python

2013-12-12 Thread Ian Kelly
On Thu, Dec 12, 2013 at 1:08 AM, marcinmltd wrote: > Adding subject to the message. > Hello, > > I'm big fan of multiprocessing module, but recently I started looking at > threading in Python more closely and got couple of questions I hope You can > help me with: > > 1. When I run two or more thre

Re: Threading In Python

2013-12-12 Thread Chris Angelico
On Thu, Dec 12, 2013 at 7:08 PM, marcinmltd wrote: > I'm big fan of multiprocessing module, but recently I started looking at > threading in Python more closely and got couple of questions I hope You can > help me with: The first thing to note is that there are two completely separate concepts he

Re: Threading In Python

2013-12-12 Thread marcinmltd
Adding subject to the message. Sent from Samsung Mobile on O2 Original message From: marcinmltd Date: To: python-list@python.org Subject: Hello, I'm big fan of multiprocessing module, but recently I started looking at threading in Python more closely and got couple

Re: Threading in Python

2007-02-07 Thread alex23
Also, MYMPI: http://peloton.sdsc.edu/~tkaiser/mympi/ PyMPI: http://sourceforge.net/projects/pympi PyPar: http://datamining.anu.edu.au/~ole/pypar/ parallel: http://cheeseshop.python.org/pypi/parallel/0.2.3 Hopefully something here is of use to you :) - alex23 -- http://mail.python.org/mailman/l

Re: Threading in Python

2007-02-07 Thread alex23
On Feb 7, 12:36 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > There are two ways. You can use processes, or you can use IronPython. Or you could try Parallel Python: http://www.parallelpython.com/ "a python module which provides mechanism for parallel execution of python code on SMP and cl

Re: Threading in Python

2007-02-06 Thread [EMAIL PROTECTED]
On Feb 7, 11:14 am, "S.Mohideen" <[EMAIL PROTECTED]> wrote: > Python is praised about - me too. But at one instance it fails. It fails to > behave as a true multi-threaded application. That means utilizing all the > CPUs parallely in the SMP efficiently stays as a dream for a Python > Programmer. >

Re: Threading in python

2005-12-14 Thread Peter Hansen
Jean-Paul Calderone wrote: > On 14 Dec 2005 10:15:08 -0800, Aahz <[EMAIL PROTECTED]> wrote: >>You either need to run multiple processes or run code that mostly calls >>into C libraries that release the GIL. For example, a threaded spider >>scales nicely on SMP. > > Yes. Nearly as well as a singl

Re: Threading in python

2005-12-14 Thread Jean-Paul Calderone
On 14 Dec 2005 10:15:08 -0800, Aahz <[EMAIL PROTECTED]> wrote: >In article <[EMAIL PROTECTED]>, >Carl J. Van Arsdall <[EMAIL PROTECTED]> wrote: > >>Because of this global interpreter lock does this mean its impossible to >>get speed up with threading on multiple processor systems? I would >>think

Re: Threading in python

2005-12-14 Thread Aahz
[BTW, please follow standard Usenet convention and attribute the quotes; I've added them back in for you] In article <[EMAIL PROTECTED]>, Carl J. Van Arsdall <[EMAIL PROTECTED]> wrote: >Aahz: >>Carl Van Arsdall: >>> >>> 1. Who schedules which threads run and when? Is this something left up >>>

Re: Threading in python

2005-12-14 Thread Lawrence Oluyede
Il 2005-12-14, Carl J. Van Arsdall <[EMAIL PROTECTED]> ha scritto: > This confuses me. What is CPython versus Jython and IronPython? I'm > using compiled source from python.org, would this be CPython? CPython is the official distribution, the one you find on python.org It's C and Python based.

Re: Threading in python

2005-12-14 Thread Carl J. Van Arsdall
> These answers assume you're using CPython; Jython and IronPython have > different answers. > > This confuses me. What is CPython versus Jython and IronPython? I'm using compiled source from python.org, would this be CPython? >> 1. Who schedules which threads run and when? Is this somet

Re: Threading in python

2005-12-13 Thread Peter Hansen
Carl J. Van Arsdall wrote: > Hi everyone, I'm trying to use the threading module with python 2.2 and > I have some questions regarding python's threading. My answers are meant to supplement Aahz' from another reply. > 3. Is there a way to which thread is running? "A way to" what? "See"? The

Re: Threading in python

2005-12-13 Thread Aahz
In article <[EMAIL PROTECTED]>, Carl J. Van Arsdall <[EMAIL PROTECTED]> wrote: > >I have some questions regarding python's threading. These answers assume you're using CPython; Jython and IronPython have different answers. >1. Who schedules which threads run and when? Is this something left up