Created
November 27, 2019 22:06
-
-
Save saisasidhar/48a0ccb4c0a9f4af5735d0419f684a93 to your computer and use it in GitHub Desktop.
PyQt Strategy for CPU Bound Tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Managed By | |
Main Process ProcessPoolExecutor | |
+-------------------------------------------+ +---------------+ | |
| MainThread QTaskRunner | | | | |
| +-----------+ +----------+ | executor.submit | +---------+ | | |
| | | | QThread +------------------->+ | P#1 | | | |
| | | | | | Future | | | | | |
| | | | +<-------------------+ | | | | |
| | | | | | PIPE | | +-----+ | | | |
| | | | +--+-----------------+--->+ | | | | |
| | | Signal | | parent_end child_end | | T | | | | |
| | +------------>+ | | | | | A | | | | |
| | | Slot | | | | | | S | | | | |
| | +<------------+ | | | | | K | | | | |
| | | | | | Future Complete | | | | | | | |
| | | | +<-------------------+ | +-----+ | | | |
| | | | | | | +---------+ | | |
| | | | | | | | | |
| | | | | | | +---------+ | | |
| | | | | | | | P#N | | | |
| +-----------+ +----------+ | | +---------+ | | |
| | | | | |
+-------------------------------------------+ +---------------+ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment