multiprocessing tag

18 questions


1 answers
110 views
0
A code question that executes multiple functions at the same time. (jupyter notebook)

Hello, I am using Python as a jupyter notebookI have difficulty using multiprocessing module,I have a question.Even if you turn the example code on several blogs,I don't know if there's something wron...


1 answers
96 views
0
Python multiprocessing

Is there a way to kill all the child processes at that moment and measure the time when you find the correct answer in this program?import multiprocessingimport timeimport sysstart_time = time.time()d...

2 years ago

1 answers
97 views
0
How to kill Python prettily by multiprocessing

I would like to utilize multi-core in a Windows environment other than Linux.If you accidentally interrupt, only the main process will be interrupted, and the rest will continue to spin like an infini...

2 years ago

1 answers
117 views
0
Pool.map Just a quick question...

if __name__ == '__main__': pool = Pool(processes=8) pool.map(loop1, range(3,10003)) pool.close() pool.join()Is it right that the eight processes do the same thing over and over again?For example, is ...


2 answers
106 views
0
python : To store the return value in a variable after multiprocessing of a function with a return value

I wonder how I can save the return value of the executed function as a variable when I run a function with a return value as a multi-process. You want to save and use the processed result as a variabl...

2 years ago

1 answers
94 views
0
Which is better, multi-threading, multiprocessing, or asyncio, for Python parallel http request/response?

Python is programming to execute http requests in parallel.I am planning to request restapi and collect the requested values and upload them to the cloudmultiprocessing,Multi-threading,Asyncio Asynchr...


2 answers
103 views
0
Are multiprocessing and ProcessPoolExecutor the same?

In order to reduce work time, I'm trying to run two or more functions simultaneously using multiprocessing, and I found that if I want to add or exclude a list in the middle of the function, I can sha...

2 years ago

1 answers
72 views
0
There is data missing when crawling by combining multiprocessing and multi-threading. How can we solve this?

Crawling using multiprocessing, treading, beautiful soup, and requests results in a list index out of range error or none type has not attribute text error.import requestsfrom bs4 import BeautifulSoup...

« - 2 -

© 2024 OneMinuteCode. All rights reserved.