Sujet : Re: Apache + mod_php performance
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.os.vmsDate : 01. Oct 2024, 03:31:51
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vdfmum$2ivg0$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
User-Agent : Pan/0.160 (Toresk; )
On Mon, 30 Sep 2024 21:49:33 -0400, Arne Vajhøj wrote:
Practically all GUI's are multi-threaded.
No, they are not. We use event loops nowadays. I know, because I have done
GUI programming using things like GTK and direct X11 calls.
Threading is also a very convenient programming model for IO.
Unnecessary. That’s why we have poll/epoll, as already discussed in this,
um, thread. If the performance bottleneck is in the I/O (or in a GUI,
waiting for the user’s next action), then threading doesn’t buy you
anything, and just adds potential for trouble.
Blocking IO API's has some limits on scalability (like 500 threads per
CPU core).
Surely only one thread is necessary.