Re: [Tutor] How to stop a specific thread in Python 2.7?

2024-09-25 Thread marc nicole via Python-list
Could you show a python code example of this? On Thu, 26 Sept 2024, 03:08 Cameron Simpson, wrote: > On 25Sep2024 22:56, marc nicole wrote: > >How to create a per-thread event in Python 2.7? > > Every time you make a Thread, make an Event. Pass it to the thread > worker function and keep it to

Re: How to stop a specific thread in Python 2.7?

2024-09-25 Thread Cameron Simpson via Python-list
On 25Sep2024 22:56, marc nicole wrote: How to create a per-thread event in Python 2.7? Every time you make a Thread, make an Event. Pass it to the thread worker function and keep it to hand for your use outside the thread. -- https://mail.python.org/mailman/listinfo/python-list

Re: How to stop a specific thread in Python 2.7?

2024-09-25 Thread marc nicole via Python-list
How to create a per-thread event in Python 2.7? On Wed, 25 Sept 2024, 22:47 Cameron Simpson via Python-list, < python-list@python.org> wrote: > On 25Sep2024 19:24, marc nicole wrote: > >I want to know how to kill a specific running thread (say by its id) > > > >for now I run and kill a thread li

Re: How to stop a specific thread in Python 2.7?

2024-09-25 Thread Cameron Simpson via Python-list
On 25Sep2024 19:24, marc nicole wrote: I want to know how to kill a specific running thread (say by its id) for now I run and kill a thread like the following: # start thread thread1 = threading.Thread(target= self.some_func(), args=( ...,), ) thread1.start() # kill the thread event_thread1 = t

How to stop a specific thread in Python 2.7?

2024-09-25 Thread marc nicole via Python-list
Hello guys, I want to know how to kill a specific running thread (say by its id) for now I run and kill a thread like the following: # start thread thread1 = threading.Thread(target= self.some_func(), args=( ...,), ) thread1.start() # kill the thread event_thread1 = threading.Event() event_thread

Re: stdout of child process as an input of another thread in Python?

2015-05-29 Thread dieter
Kevin Peterson writes: > I want to use the stdout of child process as an input of another thread, but > some how I am not able to read the stdout. Using Popen I have created a > child process and stdout of it I have redirected to PIPE (because I don't > want that to be printed on with my main

stdout of child process as an input of another thread in Python?

2015-05-29 Thread Kevin Peterson
Hi, I want to use the stdout of child process as an input of another thread, but some how I am not able to read the stdout. Using Popen I have created a child process and stdout of it I have redirected to PIPE (because I don't want that to be printed on with my main process). Now using this

Re: How to prevent from race conditions to share data between many process and thread in python

2007-02-07 Thread Laurent Pointal
mars a écrit : > I use TurboGears to do some web service. TurboGears use cherrypy. When > web browser access this site, the cherrypy will call my python > program. So my program looks like a lib. When web browser access the > site, the http server will fock a process or gerenate a thread. I need >

Re: How to prevent from race conditions to share data between many process and thread in python

2007-02-06 Thread Gabriel Genellina
En Tue, 06 Feb 2007 08:49:51 -0300, Diez B. Roggisch <[EMAIL PROTECTED]> escribió: > mars wrote: > >> On 2月6日, 下午6时14分, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: >>> mars wrote: >>> > I use TurboGears to do some web service. TurboGears use cherrypy. >>> When >>> > web browser access this s

Re: How to prevent from race conditions to share data between many process and thread in python

2007-02-06 Thread Diez B. Roggisch
mars wrote: > On 2月6日, 下午6时14分, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: >> mars wrote: >> > I use TurboGears to do some web service. TurboGears use cherrypy. When >> > web browser access this site, the cherrypy will call my python >> > program. So my program looks like a lib. When web browse

Re: How to prevent from race conditions to share data between many process and thread in python

2007-02-06 Thread mars
On 2月6日, 下午6时14分, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > mars wrote: > > I use TurboGears to do some web service. TurboGears use cherrypy. When > > web browser access this site, the cherrypy will call my python > > program. So my program looks like a lib. When web browser access the > > si

Re: How to prevent from race conditions to share data between many process and thread in python

2007-02-06 Thread Diez B. Roggisch
mars wrote: > I use TurboGears to do some web service. TurboGears use cherrypy. When > web browser access this site, the cherrypy will call my python > program. So my program looks like a lib. When web browser access the > site, the http server will fock a process or gerenate a thread. I need > sh

How to prevent from race conditions to share data between many process and thread in python

2007-02-06 Thread mars
I use TurboGears to do some web service. TurboGears use cherrypy. When web browser access this site, the cherrypy will call my python program. So my program looks like a lib. When web browser access the site, the http server will fock a process or gerenate a thread. I need share some data or operat

Re: Thread in python

2005-02-04 Thread Do Re Mi chel La Si Do
Hi ! Look the smart/fun use of threads make by http://candygram.sourceforge.net It's good for to know... @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Thread in python

2005-02-04 Thread Aahz
In article <[EMAIL PROTECTED]>, Steve Holden <[EMAIL PROTECTED]> wrote: > >http://starship.python.net/crew/aahz/OSCON2001/index.html Thanks! But while that's still good (for the code, if nothing else), it ought to be at least supplemented with http://heather.cs.ucdavis.edu/~matloff/Python/PyThre

Re: Thread in python

2005-02-04 Thread Kartic
Ah! I forgot about this link the slideshow is very informative. -- http://mail.python.org/mailman/listinfo/python-list

Re: Thread in python

2005-02-04 Thread Steve Holden
Kartic wrote: [EMAIL PROTECTED] wrote: Hello, is any one knows websites which give a python thread tutorial ? Sincerely Yours, Pujo Aji Pujo Aji, I have not come across a tutorial but found this link rather helpful - http://www.faqts.com/knowledge_base/index.phtml/fid/263 - to get started. Also, t

Re: Thread in python

2005-02-04 Thread Kartic
[EMAIL PROTECTED] wrote: > Hello, is any one knows websites which give a python thread tutorial ? > > Sincerely Yours, > Pujo Aji Pujo Aji, I have not come across a tutorial but found this link rather helpful - http://www.faqts.com/knowledge_base/index.phtml/fid/263 - to get started. Also, there

Thread in python

2005-02-04 Thread [EMAIL PROTECTED]
Hello, is any one knows websites which give a python thread tutorial ? Sincerely Yours, Pujo Aji -- http://mail.python.org/mailman/listinfo/python-list