in reply to Responsive GUI without threads
Which I take as saying that even if you thread, you shouldn't really have one thread per logical activity (as is common). Threads are at their best (as are processes) when their number is a small multiple (2 or 3) times the number of execution cores in your system (i.e. number of processors, give or take a bit of hyperthreading or dual-core action).
This leads to approaches such as thread pools and producer/consumer relationships between threads. This also leads to healthy behaviour such as avoiding repeated startup/shutdown of threads and processes. (OSes vary as to the relative costs of starting up threads and processes. But even so, it isn't something you want in your fast path if you're looking at performance. And lots of people interested in threading are).
|
|---|