multiprocessing tag

18 questions


1 answers
318 views
0
When a multiprocessing program runs, dozens of programs run.

Description of the program you are creating first.Below is the code you wrote.main.py--import chatimport pygameimport randomimport globimport refrom multiprocessing import Process, Queueif __name__ ==...


1 answers
475 views
0
If you use SocketHandler to send logs to ThreadingTCPServer, the program will not exit.(Related to Python logging)

Something like deadlock occurs and the program does not exit.This occurred in a program that provides server threading and bulk management of logs during parallel processing using multiprocessing base...


1 answers
151 views
0
Get subprocess.Popen stdout and stderr in real time

After processing the contents of stdout and stderr of the child process with python's subprocess.Popen, I would like to output them to the parent's stdout and stderr in real time and in order, respect...


1 answers
82 views
0
Multi-threaded, multi-process design on servers with data communication and database write

Preface: I'm sorry if I wrote something wrong or off the mark due to my lack of knowledge.What I don't know: Optimal design using multi-threaded (multi-process) server applicationsProgram you want to ...


1 answers
138 views
0
I would like to ask you about multiprocessing for simple calculation in Python

The code below is a summary (?) of the questions.Although oversimplified in the code below, the resulting matrix M approached by each process is located in a different position (each process wants to ...


1 answers
130 views
0
Python multiprocessing question.

from multiprocessing import Processdef GO(): print('Hi\n')if __name__=='__main__': pr1 = Process(target=GO) pr2 = Process(target=GO) pr1.start() pr2.start() pr1.join() pr2.join()I made it while lookin...


1 answers
148 views
0
Question about Python multiprocessing.

a=[1,2,3,4,5]b=[]for c in a: b.append(c)print(b) # Output is [1,2,3,4,5]I'm trying to execute the above code quickly using multiprocessing.from multiprocessing import Poola=[1,2,3,4,5]def abc(a): b=[]...


1 answers
107 views
0
Python multiprocessing question! (Correction)

After defining the class called Test, define the write and read functions in itAfter creating the object, I tried to run both functions at the same time using the multiprocessing module, and I tried c...

2 years ago

1 answers
84 views
0
Python function coding questions that always run in parallel.(multiprocessing)

Hello, I'm coding Python.Even if you search by yourself and code through trials and errors,I'm asking you a question because something doesn't work out.from time import sleepfrom multiprocessing impor...

2 years ago

1 answers
81 views
0
Multiprocessing vs. multi-threading with Python

Which is better, multiprocessing or multi-threading?I heard that you don't need to use GIL for multiprocessing, is there anything else?Please tell us the difference and pros and cons of the two

- 1 - »

© 2024 OneMinuteCode. All rights reserved.