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

Multithreading to multiprocessing #17

Open
OsamaMomani opened this issue Apr 27, 2023 · 0 comments
Open

Multithreading to multiprocessing #17

OsamaMomani opened this issue Apr 27, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@OsamaMomani
Copy link
Member

OsamaMomani commented Apr 27, 2023

Threading is used on network_sniffer to run sniffers simultaneously for multiple interfaces. However, due to CPython's GIL, only one thread at a time can access the interpreter.

This can be fixed by either:

  1. Use multiprocessing or Concurrent.futures
  2. Celery
  3. smth else
@OsamaMomani OsamaMomani added the bug Something isn't working label Apr 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants