X-Received: by 10.236.31.100 with SMTP id l64mr48547803yha.55.1433375143191; Wed, 03 Jun 2015 16:45:43 -0700 (PDT) X-Received: by 10.182.232.165 with SMTP id tp5mr87256obc.4.1433375143128; Wed, 03 Jun 2015 16:45:43 -0700 (PDT) Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!peer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!z60no165087qgd.1!news-out.google.com!n7ni81igk.0!nntp.google.com!h15no21760igd.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.python Date: Wed, 3 Jun 2015 16:45:42 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=173.172.156.195; posting-account=AJ6qCwoAAAAFAR3dsT266HYVRFT97GVt NNTP-Posting-Host: 173.172.156.195 References: <5eba09c9-aadb-46d9-b644-8ba775d8b97a@googlegroups.com> <7a358948-5929-46b5-a847-13e8b9bcf46e@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Multiple thread program problem From: Mohan Mohta Injection-Date: Wed, 03 Jun 2015 23:45:43 +0000 Content-Type: text/plain; charset=ISO-8859-1 X-Received-Bytes: 1880 X-Received-Body-CRC: 4009684404 Xref: csiph.com comp.lang.python:92013 On Wednesday, June 3, 2015 at 5:34:31 PM UTC-5, Waffle wrote: > You think "(f)" makes a tuple, but it does not. > the parentesis is not the tuple constructor, the comma is > try: > t=thread.start_new_thread(proc,(f,)) Thanks for the pointer waffle. The program executes now but still not the way I want it. I think I will need to tweak it a bit as the code is executing with the same argument from the file /tmp/python/1 multiple times whereas it needs to be executed only ones but in parallel. Let me figure that out. Once again thanks for all the help provided on this thread.