Advance Python Series-Asynchronous Execution(Parallel Execution) With Thread Using Python

preview_player
Показать описание

Educators
All Playlist In My channel

Please donate if you want to support the channel through GPay UPID,

Please join as a member in my channel to get additional benefits like materials in Data Science, live streaming for Members and many more

Please do subscribe my other channel too

Connect with me here:
Рекомендации по теме
Комментарии
Автор

Thank you so much sir, for such incredible content ⭐.

kunalkumaraiml
Автор

@krish great video as always. I have a couple of questions, when you set Max workers to None, did it automatically spawn max possible threads as the execution got completed in approx 1 sec?
Also in case of multiple workers how can we map the result output back to it's function call as different function may have different execution times.

sachinkun
Автор

I'd like to improve my python's application performance, by passing a Multiprocessing pipe when instantiating the PyQt widget.

One way I thought of doing is to create a custom class that extends both a pyqt widget and multiprocessing.

For example this inherits from ONLY Qt,
class
def __init__(self, *args, **kwargs):
super(MainWindowReceiver, self).__init__(*args, **kwargs)

And can be instantiated without passing any argument:
main = MainWindowReceiver()
main.show()

However, if I create a class that inherits from both PyQt AND multiprocessing,
class, mp.Process):
super(Process, self).__init__(*args, **kwargs)

then NONE of these work:
out_pipe = mp.Pipe()
p1 = MainWindowReceiver(out_pipe) #doesn't work
p1 = #doesn't work
p1 = MainWindowReceiver(, pipe=out_pipe) #doesn't work
p1.show()

1) What does the syntax look like to construct a class that inherits from both PyQt & multiprocessing, such that instantiation its object, only requires the pipe argument?

2) Is there a way to pass a pipe to a PyQt Widget WITHOUT creating a multiple-inherited class?

bennguyen
Автор

Please implement it with Redis Queue also

AjaySharma-bykr
Автор

Whats the difference between multithreading and multiprocessing and which one is faster to use

coolmantej
Автор

How to handle variables overlapping and conflict due multiple threads at a time execution and in correct results

shreyasb.s
Автор

Sir isme async function dalna ho to kese kre

The_NoOne
Автор

Where do we use this in ML model, can u explain its usage pls

sparkersclubesports
Автор

Asynchronous and parallel are 2 different concepts

nccamsc