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


Groups > comp.lang.python > #110219

Re: is there a concurrent list for append in parallel programming in python? how to pass parameter in this parallel program with pool?

Path csiph.com!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From Ian Kelly <ian.g.kelly@gmail.com>
Newsgroups comp.lang.python
Subject Re: is there a concurrent list for append in parallel programming in python? how to pass parameter in this parallel program with pool?
Date Tue, 21 Jun 2016 02:01:00 -0600
Lines 23
Message-ID <mailman.1.1466496101.11516.python-list@python.org> (permalink)
References <7c34b140-ac0d-4840-8c30-e967e83aae4a@googlegroups.com> <57626394$0$2780$c3e8da3$76491128@news.astraweb.com> <90fdccc7-ead5-4a31-99d2-f1ad37ba496e@googlegroups.com> <CALwzid=5BNYc-1CyXg-Ofa5CoLL-Wq3v+k=S4bb0MJ0SU93_6g@mail.gmail.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
X-Trace news.uni-berlin.de Y7PjqVZOSoYPJiG2oKSEDQIOhdgW9a9Uv5DJLjDfRYtQ==
Return-Path <ian.g.kelly@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.019
X-Spam-Evidence '*H*': 0.96; '*S*': 0.00; '16,': 0.03; 'url:msdn': 0.07; 'cc:addr:python-list': 0.09; 'concurrent': 0.09; 'thread': 0.10; 'subject:python': 0.14; 'subject: \n ': 0.15; 'thu,': 0.15; '2016': 0.16; 'cc:name:python': 0.16; 'concurrency': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'subject:pass': 0.16; 'subject:program': 0.16; 'subject:programming': 0.16; 'top- post': 0.16; 'wrote:': 0.16; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'am,': 0.23; 'header:In-Reply-To:1': 0.24; 'subject:list': 0.26; 'message-id:@mail.gmail.com': 0.27; 'dictionary': 0.29; 'equivalent,': 0.29; 'queue': 0.29; 'posting': 0.32; 'possibly': 0.32; 'url:python': 0.33; 'received:google.com': 0.35; 'clear': 0.35; 'list,': 0.36; 'url:org': 0.36; 'received:209.85': 0.36; 'url:library': 0.36; 'subject:?': 0.36; 'subject:: ': 0.37; 'list.': 0.37; 'things': 0.38; 'received:209': 0.38; 'mailing': 0.38; 'received:209.85.214': 0.39; 'subject:with': 0.40; 'called': 0.40; 'url:3': 0.60; 'your': 0.60; 'here.': 0.62; 'safe': 0.63; 'subject:there': 0.66; 'url:en-us': 0.72; 'sounds': 0.76; '2:45': 0.84; 'quotations': 0.84; 'received:209.85.214.181': 0.84; 'received:mail- ob0-f181.google.com': 0.84; 'subject:this': 0.85; 'to:none': 0.91
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:cc; bh=WwHmi6laeHKUwfg59f42hRIlShTCQOZ2jL/NJyAKzns=; b=G6p2WQn5kzdGjD7EDJET4dNV74QBVE3cVZ0o/hpMYhG4FV/tnwUH7BQc+q3CeDRezg nvWnQVz7jPUQ7m/3k9zmfcOmTXzirddlmgIvFL3/spR/+6bf2UdjjNvwDbW9qt3BooZX Y45QxqBlL7zcpSTiL/J/hdvCudpdb4p0PbdlzXKMhNI0+UrVkZSk/MZ0NJN/FaHYcjgq dO5hR4AIYaACi+yqdXULDD/LysrxDTjfn7Jec5GE5c+WpfSQIXVwRN6oOZ9cn7dlZxXM FTuq27QhBa4sMMiGzpK+EhZLE/BuzYU8pVX3ifrc/uUli84/DNcYwddvNliDEThp/LJF YqeQ==
X-Google-DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:cc; bh=WwHmi6laeHKUwfg59f42hRIlShTCQOZ2jL/NJyAKzns=; b=Zvlv6KFWU1TcQeAqzFVE61NnOGgCfO4GkqWsmJYU/bdaSOS/t/4xiIzit3rKmtqzBo E+ApZzGt5tYXfiD3rwWTXc/nPmnWmxyknu7ZkG2KjhIdNubpzoW4HswvJjE7wSNtvCNM L20E76DHAR0al26xfhqOv15fgfNGtNPkDxCF/bZLhK2aoaNlGFhHm2m7y2eRBv6KebHX Lg7ZVrHizjdHFnhcQUcalvO+qN3pjSzomPjKQZ+ZW6f/VSTDIFmjvARDjH7l/XxkkObD 1pIKn47vDpLO/+zRy+UeSDIAhYeNvQb2Ss3aPsOZij8H/j4IY9COFHSTSQ2pPqaftAry ya1w==
X-Gm-Message-State ALyK8tLAIPDzjkBR1V6jyyWMxp3kYHu1q+xdGPLxAiq59g025KEJQ5SZASE0N7l799RY4I/ZSqmLrmv3JrYCNg==
X-Received by 10.157.48.36 with SMTP id d33mr14242730otc.30.1466496099503; Tue, 21 Jun 2016 01:01:39 -0700 (PDT)
In-Reply-To <90fdccc7-ead5-4a31-99d2-f1ad37ba496e@googlegroups.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.22
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://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 <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID <CALwzid=5BNYc-1CyXg-Ofa5CoLL-Wq3v+k=S4bb0MJ0SU93_6g@mail.gmail.com>
X-Mailman-Original-References <7c34b140-ac0d-4840-8c30-e967e83aae4a@googlegroups.com> <57626394$0$2780$c3e8da3$76491128@news.astraweb.com> <90fdccc7-ead5-4a31-99d2-f1ad37ba496e@googlegroups.com>
Xref csiph.com comp.lang.python:110219

Show key headers only | View raw


On Thu, Jun 16, 2016 at 2:45 AM, meInvent bbird <jobmattcon@gmail.com> wrote:
> the name in c# is not called concurrent list, it is called
> blockingcollection
>
> dictionary called concurrent dictionary
>
> thread safe these kind of things
>
> https://msdn.microsoft.com/en-us/library/dd267312(v=vs.110).aspx
>
> https://msdn.microsoft.com/en-us/library/dd997369(v=vs.110).aspx
>
> https://msdn.microsoft.com/en-us/library/dd997305(v=vs.110).aspx

It sounds to me like you're looking for the Queue class:
https://docs.python.org/3/library/queue.html

Or possibly you want its multiprocessing equivalent, since it's not
clear to me which kind of concurrency you're interested in:
https://docs.python.org/3/library/multiprocessing.html#multiprocessing.Queue

Also, please don't top-post on this mailing list. Trimming quotations
and interleaving your replies is the accepted posting style here.

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


Thread

is there a concurrent list for append in parallel programming in python? how to pass parameter in this parallel program with pool? meInvent bbird <jobmattcon@gmail.com> - 2016-06-16 00:28 -0700
  Re: is there a concurrent list for append in parallel programming in python? how to pass parameter in this parallel program with pool? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2016-06-16 18:30 +1000
    Re: is there a concurrent list for append in parallel programming in python? how to pass parameter in this parallel program with pool? meInvent bbird <jobmattcon@gmail.com> - 2016-06-16 01:45 -0700
      Re: is there a concurrent list for append in parallel programming in python? how to pass parameter in this parallel program with pool? Ian Kelly <ian.g.kelly@gmail.com> - 2016-06-21 02:01 -0600
    Re: is there a concurrent list for append in parallel programming in python? how to pass parameter in this parallel program with pool? meInvent bbird <jobmattcon@gmail.com> - 2016-06-16 01:47 -0700

csiph-web