Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed4.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: UNSURE 0.200 X-Spam-Level: ** X-Spam-Evidence: '*H*': 0.60; '*S*': 0.00; 'nasty': 0.07; 'programmer': 0.11; 'threads': 0.16; 'usage,': 0.16; 'wrote:': 0.17; 'memory': 0.18; 'windows': 0.19; 'apps': 0.23; "i've": 0.23; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; '3.1': 0.29; 'cases.': 0.29; "d'aprano": 0.29; 'steven': 0.29; 'to:addr :python-list': 0.33; 'problem,': 0.35; 'pm,': 0.35; 'except': 0.36; 'anything': 0.36; "i'll": 0.36; 'too': 0.36; 'two': 0.37; 'subject:: ': 0.38; 'things': 0.38; 'to:addr:python.org': 0.39; 'step': 0.39; 'received:192': 0.39; 'application': 0.40; 'where': 0.40; 'received:192.168': 0.40; 'solve': 0.62; 'ever': 0.63; 'more': 0.63; 'other.': 0.64; 'promise': 0.65; 'subject:day': 0.66; 'header:Reply-To:1': 0.68; 'received:74.208': 0.71; 'reply- to:no real name:2**0': 0.72; 'shared,': 0.84; 'lately,': 0.91; 'promised': 0.91 Date: Mon, 14 Jan 2013 00:31:59 -0500 From: Dave Angel User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121011 Thunderbird/16.0.1 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Thought of the day References: <50f3869d$0$29983$c3e8da3$5496439d@news.astraweb.com> In-Reply-To: <50f3869d$0$29983$c3e8da3$5496439d@news.astraweb.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:4swUePDlSexIjjux2AmcYjmkYGyGdv3qcQ3OsCOZqCt ATBAepV0pvYyaIe73yJQNmXmMpLNGQfR2sIFv0sa6cZcDAu8dp 0/Xzz3zOOiq8U5uLwLBRHOapCRNEOWe4Op4U2MaYrip+ZD3mnD kOGqXkLUnx6axdy6q/j1NZR9vHA1EsBhZtzhZhC7D/ekJaTRqP 9cy6A6FQJugHdBPUP1pFLt3HHaxWGP1vjdAMnZH/llM44mbcYX /OJE77jS1JnTnM018QiDZIHJC+ePg1BC//kt5usi7T4fkIMfd8 VBZFAqRRFWKx5opiWlOiwqexBnBwjAEHMV8vNIRtykdahIxIA= = X-Mailman-Approved-At: Mon, 14 Jan 2013 10:27:02 +0100 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: d@davea.name 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: 23 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1358155623 news.xs4all.nl 6951 [2001:888:2000:d::a6]:51982 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:36777 On 01/13/2013 11:16 PM, Steven D'Aprano wrote: > A programmer had a problem, and thought Now he has "I know, I'll solve > two it with threads!" problems. > > ++10 I've been thinking about threads lately, and have come to the tentative conclusion that they're a solution which has outlived its usefulness for 99% of the use cases. Much like the Windows 3.1 model of memory usage, where all memory was shared, and apps promised not to step too hard on each other. Or the "640k is more memory than any application will ever need" notion. When you multiprocess, everything is private except those things you work at sharing. When you multithread, everything is shared, and you promise not to intentionally do anything too nasty with the ability. -- DaveA