With Qt you can handle many connections in a single thread using signals and slots.
Basicaly, it's not good to use a separate thread for each connection if you expect to receive many connections at a time (nobody wants to have 100 threads of the same process in their system). On the other hand, if you expect not more than few connections at a time, it's not worth using threads because you can safely handle all the connections from within one thread (for example using the select() call or Qt sockets).
Threads are good if you want to separate connections from each other, so that they don't interfere each other. On multiprocessor systems having multiple threads is the way to go. Otherwise, either use a single thread for all connections or make a hybrid system with thread queues (like apache does, for example).
Bookmarks