{"author_name":"s-shin","url":"https://shin.hateblo.jp/entry/2020/04/09/021009","blog_url":"https://shin.hateblo.jp/","height":"190","provider_name":"Hatena Blog","image_url":null,"type":"rich","title":"multiprocessing\u30e1\u30e2","width":"100%","author_url":"https://blog.hatena.ne.jp/s-shin/","blog_title":"$ cat /var/log/shin","version":"1.0","description":"import multiprocessing as mp import multiprocessing.sharedctypes as mpshared def worker(idx: int, queue: mp.Queue, shared_counter): while True: if not queue.get(): break shared_counter[idx] += 1 def main(): NUM_WORKERS = 64 shared_counter = mpshared.RawArray('B', NUM_WORKERS) queues = [mp.Queue() fo\u2026","categories":[],"published":"2020-04-09 02:10:09","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshin.hateblo.jp%2Fentry%2F2020%2F04%2F09%2F021009\" title=\"multiprocessing\u30e1\u30e2 - $ cat /var/log/shin\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_url":"https://hatena.blog"}