Java is a bad example in this context, because it lacked asynchronous I/O for a long time and a lot if its APIs are still blocking by default.
Qt, on the other hand, is primarily designed to be non-blocking, I/O being handled asynchronously (operation returning immediately, results being signalled).
If you really must increase the complexity of your program then the approach suggested by stampede is usually the way to go.
It allows everything to be tested with a single thread, etc.
Cheers,
_






Reply With Quote

Bookmarks