multiprocessing
Updating a tk ProgressBar from a multiprocess.proccess in python3
I have successfully created a threading example of a thread which can update a Progressbar as it goes.However doing the same thing with multiprocessing has so far eluded me.[详细]
2023-04-09 09:36 分类:问答Which strategy to use with multiprocessing in python
I am completely new to multiprocessing. I have been reading documentation about multiprocessing module. I read about Pool, Threads, Queues etc. but I am completely lost.[详细]
2023-04-08 17:35 分类:问答Python class inheriting multiprocessing, trouble with accessing class members
In short, say I have the following: import multiprocessing class Worker(multiprocessing.Process): def __init__(self):[详细]
2023-04-08 11:21 分类:问答Create DB connection and maintain on multiple processes (multiprocessing)
Similar to another post I made, this answers that post and creates a new question. Recap:I need to update every record in a spatial database in which I have a data set of points that overlay data set[详细]
2023-04-08 08:37 分类:问答How to stop multiprocess python-program cleanly after exception?
I have a Python program that has several processes (for now only 2) and threads (2 per process). I would like to catch every exception and especially shut down my program cleanly on Ctrl+c but I can\'[详细]
2023-04-08 00:27 分类:问答Question about mongodb capped collections + tailable cursors
I\'m building a queueing system that passes a message from one process to another via a stack implemented in mongodb with capped_collections and tailable cursors.[详细]
2023-04-07 13:35 分类:问答how come I have more threads than processes I asked for my pool in py3k multiprocessing under Linux?
I am trying to parallelize some work, which runs on my mac (Pyton 3.2.2 under Mac OS 10.7) but gives the following error on a Linux cluster I run it where I got 4 cores and access Python 3.2. The erro[详细]
2023-04-05 15:54 分类:问答how can Python see 12 cpus on a cluster where I got allocated 4 cores by LSF?
I access a Linux cluster where resources are allocated using LSF, which I think is a common tool and comes from Scali (http://www.scali.com/workload-management/high-performance-computing). In an inter[详细]
2023-04-05 05:31 分类:问答how to chunk a csv (dict)reader object in python 3.2?
I try to use Pool from the multiprocessing module to speed up reading in large csv files. For this, I adapted an example (from py2k), but it seems like the csv.dictreader object has no length. Does it[详细]
2023-04-04 07:37 分类:问答Python passing dictionary to process in multiprocessing
I have a class that contains a (large) number of different properties, including a few dictionaries.When I pass an instance of the class through to a new process, all of the numeric values seem to get[详细]
2023-04-03 20:03 分类:问答