Worker threads with shared resources in Qt application
问题 I am working on a Qt application which involves serial communication with one or multiple devices. There are different procedures that can be executed simulteanously and each procedure may send one or unknown number of commands to a device and may receive data in response. To make it more clear, here is a graphical illustration of the scenario: Clicking on a button triggers the execution of the corresponding procedure. So two or more different procedures may be running at the same time when