rllola / ZeronetBrowser

An attempt to create a dedicated browser for ZeroNet using PyQt5
17 stars 15 forks source link

Multithread instead of multprocessing ? #51

Open rllola opened 5 years ago

rllola commented 5 years ago

https://timber.io/blog/multiprocessing-vs-multithreading-in-python-what-you-need-to-know/

danimesq commented 5 years ago

As a noob, I think multithread is better because it uses separate proccesses (like Google Chrome's tabs), so if one crashes, the whole browser is yet working with the other tabs

rllola commented 5 years ago

For the tabs I am not sure how pyqt5 is handling it... It might be worth looking into it.

For this precise issue I was referring to this part : https://github.com/rllola/ZeronetBrowser/blob/master/launch.py

I start zeronet inside an other process and create the browser inside the main one process. We now have 2 processes running and I just want to be sure it is the proper way of doing it.