Sorry for the misarrangement of my code in list, it happens everytime.
I apologized.
From: waitmefore...@hotmail.com
To: python-list@python.org
Subject: python2.7 kill thread and find thread id
Date: Wed, 4 Jan 2012 14:10:46 +0800
Hello,guys!!
I am using python2.7 to write a simple thread
Hello,guys!!
I am using python2.7 to write a simple thread program which print the current
running thread id
and kill it with this id.
But I have some questions with this.
My code: -from threading
import Threadclass t(Thread): def __init__(
2008/8/8 <[EMAIL PROTECTED]>:
> On 8 Ago, 10:03, "Mathieu Prevot" <[EMAIL PROTECTED]> wrote:
>> 2008/8/8 Miki <[EMAIL PROTECTED]>:
>>
>> > Hello,
>>
>> >> I have a threading.Thread class with a "for i in range(1,50)" loop
>> >> within. When it runs and I do ^C, I have the error [1] as many as
>> >
On 8 Ago, 10:03, "Mathieu Prevot" <[EMAIL PROTECTED]> wrote:
> 2008/8/8 Miki <[EMAIL PROTECTED]>:
>
> > Hello,
>
> >> I have a threading.Thread class with a "for i in range(1,50)" loop
> >> within. When it runs and I do ^C, I have the error [1] as many as
> >> loops. I would like to catch this exce
2008/8/8 Miki <[EMAIL PROTECTED]>:
> Hello,
>
>> I have a threading.Thread class with a "for i in range(1,50)" loop
>> within. When it runs and I do ^C, I have the error [1] as many as
>> loops. I would like to catch this exception (and if possible do some
>> cleanup like in C pthreads) so the prog
Hello,
> I have a threading.Thread class with a "for i in range(1,50)" loop
> within. When it runs and I do ^C, I have the error [1] as many as
> loops. I would like to catch this exception (and if possible do some
> cleanup like in C pthreads) so the program finishes cleanly. Where and
> how can
Hi,
I have a threading.Thread class with a "for i in range(1,50)" loop
within. When it runs and I do ^C, I have the error [1] as many as
loops. I would like to catch this exception (and if possible do some
cleanup like in C pthreads) so the program finishes cleanly. Where and
how can I do this ? i
On 10 Apr 2007 11:07:51 -0700, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> On 26 Mar., 18:08, [EMAIL PROTECTED] wrote:
> > you know the pid, you can kill it, but that's not always a
> > clean way of accomplishing the task.
>
> So I have to open the connection in a new process... Sigh.. How I hat
On 26 Mar., 18:08, [EMAIL PROTECTED] wrote:
> you know the pid, you can kill it, but that's not always a
> clean way of accomplishing the task.
So I have to open the connection in a new process... Sigh.. How I hate
this part of Python.
--
http://mail.python.org/mailman/listinfo/python-list
En Mon, 09 Apr 2007 06:14:26 -0300, Teja <[EMAIL PROTECTED]> escribió:
> Can any on help me out in killing a thread (i.e deleteing the reources
> like, stack ,memory etc) which is started with
> win32process.beginthreadex()???
As you can read on:
http://msdn2.microsoft.com/en-us/library/kdzttdcb(
On Apr 9, 6:18 pm, "Christian" <[EMAIL PROTECTED]> wrote:
> On Apr 9, 5:14 am, "Teja" <[EMAIL PROTECTED]> wrote:
>
> > Hi all,
>
> > Can any on help me out in killing a thread (i.e deleteing the reources
> > like, stack ,memory etc) which is started with
> > win32process.beginthreadex()???
>
> > Ri
On Apr 9, 5:14 am, "Teja" <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> Can any on help me out in killing a thread (i.e deleteing the reources
> like, stack ,memory etc) which is started with
> win32process.beginthreadex()???
>
> Rite now, I am suspending the thread. But any pointers as to how to
> dele
On Apr 9, 3:01 pm, Michel Claveau
<[EMAIL PROTECTED]> wrote:
> Hi!
>
> If you have the PID of the process (example: 1234), use this
> command-line :
>TASKKILL/F /PID 1234
>
> --
> @-salutations
>
> Michel Claveau
Hi Michel,
Thnks for the replyBut TASKKILL kills the process entirely..N
Hi!
If you have the PID of the process (example: 1234), use this
command-line :
TASKKILL /F /PID 1234
--
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi all,
Can any on help me out in killing a thread (i.e deleteing the reources
like, stack ,memory etc) which is started with
win32process.beginthreadex()???
Rite now, I am suspending the thread. But any pointers as to how to
delete the thread permanently?
Its pretty urgent... Please...
Teja.P
On Mar 26, 10:53 am, Thomas Dybdahl Ahle <[EMAIL PROTECTED]> wrote:
> Hi, I'm writing an application that connects to the internet.
> Something like this:
>
> for res in socket.getaddrinfo(host, port, 0, socket.SOCK_STREAM):
> af, socktype, proto, canonname, sa = res
> try:
> self.s
Hi, I'm writing an application that connects to the internet.
Something like this:
for res in socket.getaddrinfo(host, port, 0, socket.SOCK_STREAM):
af, socktype, proto, canonname, sa = res
try:
self.sock = socket.socket(af, socktype, proto)
Now if the user press the cancel button
17 matches
Mail list logo