Deutsch   English   Français   Italiano  
<66fd87f2$0$715$14726298@news.sunsite.dk>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!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: <vcv0bl$39mnj$1@dont-email.me>
 <66f8a44c$0$716$14726298@news.sunsite.dk> <vda9tl$1facd$1@dont-email.me>
 <vdaala$1es94$1@dont-email.me> <vdab8a$1facd$7@dont-email.me>
 <vdbp7k$1pg2p$1@dont-email.me> <vdcm06$1tmdr$2@dont-email.me>
 <vdcn50$1tq3t$1@dont-email.me> <vdcom4$1tmdr$13@dont-email.me>
 <vdcpri$1tq3s$1@dont-email.me> <vdcufi$1unhf$2@dont-email.me>
 <vdcvmo$1tq3s$3@dont-email.me> <vdcvu7$1utjr$1@dont-email.me>
 <vdd0kl$1tq3t$2@dont-email.me> <vdd0th$22qgt$1@dont-email.me>
 <vdd2mr$1tq3s$4@dont-email.me> <vdd553$23amd$1@dont-email.me>
 <66fb394e$0$717$14726298@news.sunsite.dk> <vdfffi$2ec8o$1@dont-email.me>
 <66fb4377$0$717$14726298@news.sunsite.dk> <vdfgfu$2ec8o$4@dont-email.me>
 <vdfgtl$2drhq$1@dont-email.me> <vdfjmb$2ep6c$3@dont-email.me>
 <vdfkfd$2drhp$1@dont-email.me> <vdgp60$2nh73$1@dont-email.me>
 <66fc89ed$0$716$14726298@news.sunsite.dk> <vdi54s$2uj2c$1@dont-email.me>
 <66fc98d6$0$716$14726298@news.sunsite.dk> <vdk0qf$3auiu$1@dont-email.me>
Content-Language: en-US
From: =?UTF-8?Q?Arne_Vajh=C3=B8j?= <arne@vajhoej.dk>
In-Reply-To: <vdk0qf$3auiu$1@dont-email.me>
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 <arne@vajhoej.dk> 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