[Tutor] Cancelling a thread or blocked read

Dhiraj Sharma dhirajsharma at optonline.net
Sat Mar 31 07:07:02 CEST 2007


I would appreciate help on two related questions:

1. Is it possible to cancel (kill) a "child" thread from the main thread in Python running on Windows? 

2. Also, is it possible to cancel (abort) a blocking read (say, to stdin) in a function that can be called by a timer? The goal is to cancel the read if input is not forthcoming within a specified time.

I have looked in the Python manuals and the Web, but did not find any thing.

Thank you in advance.
DKS
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20070331/523c5cd5/attachment.html 


More information about the Tutor mailing list