Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.027 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'filename:fname piece:py': 0.04; 'python': 0.07; 'googled': 0.09; 'received:mail- bw0-f46.google.com': 0.09; 'written': 0.12; 'concepts.': 0.16; 'confusing.': 0.16; 'received:209.85.214.46': 0.16; 'code.': 0.18; 'working.': 0.19; 'command': 0.19; 'programming': 0.20; 'code': 0.22; 'calling': 0.25; 'somebody': 0.25; "i'm": 0.26; 'work.': 0.27; 'message-id:@mail.gmail.com': 0.28; 'user.': 0.29; 'seem': 0.30; 'invoke': 0.31; 'logic': 0.31; 'does': 0.31; 'all,': 0.31; 'to:addr:python-list': 0.32; 'there': 0.35; 'print': 0.35; 'point': 0.35; 'quite': 0.36; 'familiar': 0.36; 'getting': 0.36; 'some': 0.37; 'received:209.85': 0.37; 'thread': 0.38; 'received:google.com': 0.38; 'but': 0.38; 'help': 0.39; 'received:209.85.214': 0.39; 'to:addr:python.org': 0.39; 'could': 0.39; 'received:209': 0.39; 'would': 0.40; 'header:Received:5': 0.40; 'opened': 0.60; 'closed': 0.60; 'assistance': 0.63; 'piece': 0.63; 'concept': 0.73; 'peace': 0.77; 'subject:this': 0.79 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=g93UpQ4rl8KzveCDlKF9wVqXPjW8rYPpedrAz9FmnOg=; b=dIFNuA/iPPRFznvyyTD6NezInMQh/Z/0hkD47ZEZNNJojJC3GwmSnmJQnPq4OZPWqj BTWwICkLgONDpLbte7DBb+joJP8yL/XZoTvDaZdL//Q3Ocwhb7TO/yG3sY3B0DKmY0yQ nkBz29yydGUeZwNJGq8pH/GP9VMVNVNECPh5w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=H+gwAOxsM+qeINmi01ha+tYdOuSNQW3bjzWyES6zVMVRc+bM5NgW52w48Jpmt1Roy0 SVtFf2bnRC3ktd5ABUJb59GtitaATvrQekkeQWAd2v9m6n0zWhUpHGhPzVTF4vcg/ERL F9hmK8sCnw+VCm00s6DWahHnLGS37fuI6Xfko= MIME-Version: 1.0 Date: Thu, 12 May 2011 12:01:30 +0530 Subject: Need Assistance on this program. From: vijay swaminathan To: python-list@python.org Content-Type: multipart/mixed; boundary=0015175def8cf5c70004a30e56b6 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 72 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1305181892 news.xs4all.nl 81482 [::ffff:82.94.164.166]:60997 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:5210 --0015175def8cf5c70004a30e56b6 Content-Type: multipart/alternative; boundary=0015175def8cf5c6f604a30e56b4 --0015175def8cf5c6f604a30e56b4 Content-Type: text/plain; charset=ISO-8859-1 Hi All, I'm new bie to python thread programming and would like to assistance on the attached code. In this, I'm calling a thread to invoke a command prompt and would like to print the "Thread as alive" as long as the command prompt is opened and would like to print "Thread is Dead" only when the command prompt is closed by the user. based on my understand I have written this peace of code which does not seem to work. There is some flaw in the logic which I could not understand since I'm not that familiar with the thread concepts. Can somebody help me in getting this piece of code working. Also can somebody point me to a good tutorial on understanding python thread programming since I want to get my understanding on the concept of thread better. I googled a few but quite confusing. -- Vijay Swaminathan --0015175def8cf5c6f604a30e56b4 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi All,

I'm new bie to python thread programming and would like = to assistance on the attached code.

In this, I'm calling a threa= d to invoke a command prompt and would like to print the "Thread as al= ive" as long as the command prompt is opened and would like to print &= quot;Thread is Dead" only when the command prompt is closed by the use= r.

based on my understand I have written this peace of code which does not= seem to work. There is some flaw in the logic which I could not understand= since I'm not that familiar with the thread concepts.

Can someb= ody help me in getting this piece of code working.

Also can somebody point me to a good tutorial on understanding python t= hread programming since I want to get my understanding on the concept of th= read better. I googled a few but quite confusing.

-- <= br> Vijay Swaminathan
--0015175def8cf5c6f604a30e56b4-- --0015175def8cf5c70004a30e56b6 Content-Type: application/octet-stream; name="Thread_Example1.py" Content-Disposition: attachment; filename="Thread_Example1.py" Content-Transfer-Encoding: base64 X-Attachment-Id: f_gnlbld3p0 JycnDQpDcmVhdGVkIG9uIE1heSAxMSwgMjAxMQ0KDQpAYXV0aG9yOiB2aXN3YW1pbg0KJycnDQoN Cg0KZnJvbSB0aHJlYWRpbmcgaW1wb3J0ICBUaHJlYWQNCg0KaW1wb3J0IHN1YnByb2Nlc3MNCg0K DQoNCmNsYXNzIE15VGhyZWFkKFRocmVhZCk6DQogICAgZGVmIF9faW5pdF9fKHNlbGYsIHBhcmVu dCA9IE5vbmUpOg0KICAgICAgICBUaHJlYWQuX19pbml0X18oc2VsZikNCiAgICAgICAgDQogICAg ZGVmIHJ1bihzZWxmKToNCiAgICAgICAgcHJpbnQgJ0ludm9raW5nIENvbW1hbmQgUHJvbXB0dC4u Li4uLi4uLi4uLi4uJw0KICAgICAgICAjc3VicHJvY2Vzcy5jYWxsKFsic3RhcnQiLCAiL0RDOlxc UGVyZkxvY2FsX1BBTCIsICJzY3JpcHRzX3RvX2V4ZWN1dGUuYmF0Il0sIHNoZWxsPVRydWUpDQog ICAgICAgIHN1YnByb2Nlc3MuY2FsbChbInN0YXJ0IiwgIkM6XFx3aW5kb3dzXFxzeXN0ZW0zMlxc Y21kLmV4ZSJdLCBzaGVsbCA9IFRydWUpDQogICAgICAgIA0KZGVmIG1haW4oKToNCiAgICBteXRo cmVhZF9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