Python Multiprocessing Guide: Returning Output From A Process

preview_player
Показать описание
In this video I explain how you can return ouput in a multi-processed application using queues.

Рекомендации по теме
Комментарии
Автор

Nice job! You should keep making videos

kevinchow
Автор

Thanks for this nice and clear presentation :)

stelane
Автор

I was working on a tkinter app, where in args are given through input box and as soon as we hit search button it should start a process, but it through a some pickle error and a duplicate gui window opens up.
I’ll be happy if you make an video explaining multiprocessing using tkinter gui as an example .

sanjukumar
Автор

Supposing the queue had more data than you want to process at any one time, is there a way to retrieve X number of elements from it only? My serial port is filling a queue with 4 bytes (tuple).. is there a way to get from the queue, 1 tuple at a time (4 bytes)?

bennguyen
Автор

So normally I see a process gets passed a target function? But here I don’t see anywhere that you tell process to use run method as the target. Why does chef.start() use run? Or is this assumed that “run” is the target? Can you pass an arbitrary method of the class for the target function instead?

frankda
Автор

sir, thank you for the video. But unfortunately, I got this error

Traceback (most recent call last):
File "D:\KULIAH\CAPSTONE\C450\timeExecution\test_multiprocessing.py", line 30, in <module>
chefs.append(Chef(queue, raw_chicken))
File "C:\Users\user\AppData\Local\Programs\Python\Python38\lib\multiprocessing\process.py", line 82, in __init__
assert group is None, 'group argument must be None for now'
AssertionError: group argument must be None for now

Process finished with exit code 1

Would you help me? thank you!

adelinasimanjuntak
Автор

How to solve broken process pool on multiprocessing?

utayasurian
Автор

how to make general ai vid next pls with code thx

danielshats
Автор

Hey Jad, do you know how to return to error_callback

Pijush
Автор

I'm a beginner and I'm confused on this line of code? Basically, I'm trying to get it to execute the code but it wont:

subprocess.Popen('.vscode\\CalculatorGui.py', shell=True)

How can you make this execute the code?

Thanks

HussBTW
Автор

The explanation of the __name__ guard is total nonsense. I don’t think you really understand.

osogrande