Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #5210

Need Assistance on this program.

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 <swavijay@gmail.com>
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 <swavijay@gmail.com>
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 <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1449.1305181892.9059.python-list@python.org> (permalink)
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

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

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

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Need Assistance on this program. vijay swaminathan <swavijay@gmail.com> - 2011-05-12 12:01 +0530

csiph-web