I wondered about uncertainty in QT signal and slot communication mechanism timings over the queued connection. My signal and slot (respective objects) live in two different threads, As part of benchmarking signals is emitting from a Worker thread to the Slot in the Main thread. Siganl emit rate is 60 per second. The main thread is running in an event loop and the worker thread keeps on emitting signals as per the rate described. In my scenario, the Main thread is completely ideal and the slot contains only the return statement (so expecting immediate return from the slot). I measured the time taken for signal-slot communication and plotted a graph on resulted data. I found these were some deep spikes intermittently and even communication time also not linear as I thought.
Expected: Expecting signal-slot communication always take the same time when both the worker thread and Main thread (where signal and slot exists) are not involved in other operation. And at least there should not be sudden intermittent spikes in communication time.