Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multithread instead of multprocessing ? #51

Open
rllola opened this issue Nov 29, 2018 · 2 comments
Open

Multithread instead of multprocessing ? #51

rllola opened this issue Nov 29, 2018 · 2 comments
Labels
help wanted Extra attention is needed question Further information is requested

Comments

@rllola
Copy link
Owner

rllola commented Nov 29, 2018

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

@rllola rllola added the help wanted Extra attention is needed label Nov 29, 2018
@danimesq
Copy link
Contributor

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
Copy link
Owner Author

rllola commented Nov 30, 2018

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.

@rllola rllola added the question Further information is requested label Dec 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants