Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #15784
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!tudelft.nl!txtfeed1.tudelft.nl!multikabel.net!newsfeed10.multikabel.net!xlned.com!feeder5.xlned.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <d@davea.name> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.077 |
| X-Spam-Evidence | '*H*': 0.85; '*S*': 0.00; 'languages,': 0.03; 'script,': 0.07; 'either.': 0.09; 'cc:addr:python-list': 0.15; "(you're": 0.16; 'caveats': 0.16; 'i/o,': 0.16; 'mistake.': 0.16; 'received:192.168.1.104': 0.16; 'subject:threads': 0.16; 'thread- safe': 0.16; 'language': 0.17; 'wrote:': 0.18; 'issue.': 0.21; 'process,': 0.21; '(just': 0.23; 'header:In-Reply-To:1': 0.23; 'function': 0.27; 'separate': 0.28; 'tried': 0.28; 'fix': 0.29; 'cc:addr:python.org': 0.29; 'cc:addr:gmail.com': 0.30; 'threads.': 0.30; "i'll": 0.31; 'pm,': 0.31; 'list': 0.32; "isn't": 0.32; 'operating': 0.33; 'header:User-Agent:1': 0.33; 'done': 0.33; 'too': 0.33; 'rule': 0.34; 'cc:2**1': 0.36; 'example,': 0.36; 'before.': 0.36; 'own,': 0.36; 'thread': 0.36; 'another': 0.36; 'doing': 0.37; 'could': 0.38; 'run': 0.38; 'put': 0.38; 'some': 0.38; 'received:192': 0.38; 'describe': 0.38; 'ok,': 0.38; 'ways': 0.38; 'should': 0.39; 'systems,': 0.39; 'subject:: ': 0.39; 'one,': 0.40; 'data': 0.40; 'your': 0.61; 'efficient': 0.61; 'piece': 0.65; 'here.': 0.66; 'share': 0.66; 'header:Reply-To:1': 0.70; 'reply-to:no real name:2**0': 0.71; '01:22': 0.84; '12:52': 0.84; 'different.': 0.84; 'remarks': 0.84; 'so:': 0.84; 'tough,': 0.84; 'to:none': 0.93 |
| Date | Wed, 16 Nov 2011 13:30:39 -0500 |
| From | Dave Angel <d@davea.name> |
| User-Agent | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.23) Gecko/20110922 Thunderbird/3.1.15 |
| MIME-Version | 1.0 |
| Subject | Re: Multiple threads |
| References | <31766634.4.1321451296410.JavaMail.geo-discussion-forums@yqcm23> <CAPTjJmoAWni4-wyKB4HgAJ5KvTbz42_BC3f22MOnugUmmXzVtA@mail.gmail.com> <CAAdqOWF=irJXFO2q2+o8jpM09GMLf8N+NTNGTOtMhwKgtG6jag@mail.gmail.com> <4EC3F298.1030604@davea.name> <CAAdqOWFJftDH=9YaiHOk6mbqYGgLXK7zPEKcUhENqnzbFd2VNg@mail.gmail.com> <4EC3FF56.7030101@davea.name> |
| In-Reply-To | <4EC3FF56.7030101@davea.name> |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Provags-ID | V02:K0:vmWRfpPEvdvGzVyLWyy5k/qx4cvfshKfBCDigdSPtlJ nM17OyA6bcoVKc9vUrR79jOd/rChq5D1ZLEzDDBl9C+C/H7CA/ YqGOXy7WtSPpm351KAXtfXwrfw3dldnTjPzWINz0Sb1NYOyM87 yWUtaMUj91o7gm3FC4s06rl9OyTuWXvaqqC0KWW9CCmGZidlpC +aTQbOlQI4BKFvGZgMKIrx5uTo5Iw5+AgVvTUn6tyk668cI12h srj8lCl4lfqIDVG6TrmbywdfmhkuQkjNLZPcpF4igQvopaRC+/ nPKnTz6gfGUUX93ju3CSKZ560XJk7+FD4VOHsraZ//0rUegww= = |
| Cc | PYTHON <python-list@python.org> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.12 |
| Precedence | list |
| Reply-To | d@davea.name |
| 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.2778.1321468264.27778.python-list@python.org> (permalink) |
| Lines | 42 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1321468264 news.xs4all.nl 6856 [2001:888:2000:d::a6]:45670 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:15784 |
Show key headers only | View raw
On 11/16/2011 01:22 PM, Dave Angel wrote: > (You're top-posting. Put your remarks AFTER what you're quoting) > > On 11/16/2011 12:52 PM, Jack Keegan wrote: >> Ok, I thought that processes would do the same job as threads. So >> would the >> general rule be some thing like so: >> >> If I want another piece of work to run (theoretically) along side my >> main >> script, and I want to share data between them, I should use a thread and >> share data with the thread-safe queue. >> If the work I want done can function and complete on its own, go for a >> process. >> >> Would that be about right? >> > > Yes, with all the caveats I mentioned before. With some language > implementations, and with some operating systems, and on some > CPU-systems, the guidelines could be different. They all trade off in > ways too complex to describe here. > > For example, if a thread is mostly doing I/O, it may be just as > efficient as a separate process, even if sharing data isn't an issue. > > And in some languages, sharing data between processes isn't all that > tough, either. > > Well, you sent me a mail without including the list (just use Reply-All), and I tried to add the list in. Unfortunately, I picked the wrong one, so i sent this to Tutor by mistake. I'll try to fix that now, sorry. -- DaveA
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Multiple threads Eduardo Oliva <dutche@gmail.com> - 2011-11-16 05:48 -0800
Re: Multiple threads Chris Angelico <rosuav@gmail.com> - 2011-11-17 00:55 +1100
Re: Multiple threads Henrik Faber <hfaber@invalid.net> - 2011-11-16 15:07 +0100
Re: Multiple threads Christian Heimes <lists@cheimes.de> - 2011-11-16 16:01 +0100
Re: Multiple threads Thomas Rachel <nutznetz-0c1b6768-bfa9-48d5-a470-7603bd3aa915@spamschutz.glglgl.de> - 2011-11-16 17:45 +0100
Re: Multiple threads Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2011-11-16 16:38 -0800
Re: Multiple threads Dave Angel <d@davea.name> - 2011-11-16 12:27 -0500
Re: Multiple threads Michael Hunter <tahoemph@gmail.com> - 2011-11-16 09:55 -0800
Re: Multiple threads Dave Angel <d@davea.name> - 2011-11-16 13:06 -0500
Re: Multiple threads Dave Angel <d@davea.name> - 2011-11-16 13:30 -0500
Re: Multiple threads Miki Tebeka <miki.tebeka@gmail.com> - 2011-11-16 12:50 -0800
csiph-web