Warning: mysqli::__construct(): (HY000/1203): User howardkn already has more than 'max_user_connections' active connections in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\includes\artfuncs.php on line 21
Failed to connect to MySQL: (1203) User howardkn already has more than 'max_user_connections' active connectionsPath: ...!weretis.net!feeder8.news.weretis.net!fu-berlin.de!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail
Date: Wed, 2 Oct 2024 13:50:42 -0400
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: Apache + mod_php performance
Newsgroups: comp.os.vms
References:
<66f8a44c$0$716$14726298@news.sunsite.dk>
<66fb394e$0$717$14726298@news.sunsite.dk>
<66fb4377$0$717$14726298@news.sunsite.dk>
<66fc89ed$0$716$14726298@news.sunsite.dk>
<66fc98d6$0$716$14726298@news.sunsite.dk>
Content-Language: en-US
From: =?UTF-8?Q?Arne_Vajh=C3=B8j?=
In-Reply-To:
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Lines: 28
Message-ID: <66fd87f2$0$715$14726298@news.sunsite.dk>
Organization: SunSITE.dk - Supporting Open source
NNTP-Posting-Host: 5390223a.news.sunsite.dk
X-Trace: 1727891442 news.sunsite.dk 715 arne@vajhoej.dk/68.14.27.188:64815
X-Complaints-To: staff@sunsite.dk
Bytes: 2974
On 10/2/2024 1:44 PM, Simon Clubley wrote:
> On 2024-10-01, Arne Vajhøj wrote:
>> On 10/1/2024 8:46 PM, Lawrence D'Oliveiro wrote:
>>> On Tue, 1 Oct 2024 19:46:53 -0400, Arne Vajhøj wrote:
>>>> But any time one need to do anything time consuming in the GUI then it
>>>> needs to be done in its own thread ...
>>>
>>> Note that ?cpu-intensive? and ?time-consuming? are not synonymous.
>>> Something can take a long time to complete, but not require much CPU time
>>> during that time, so running it in the main thread would be fine and have
>>> minimal impact.
>>
>> But how do you keep the GUI responsive if the event/main loop
>> is doing something that is time consuming??
>
> You can add events to the main GTK loop (such as an I/O channel becoming
> ready) for GTK to listen on. Not sure if that is what Lawrence is thinking
> of.
So the event loop is not executing the long running task, but
it is asking the OS to do something and moves on, and then the
OS stuff an event into the vent loop when whatever is done?
Lawrence actually posted a link to some code. I will have
to take a look at that. Sometime.
Arne