Re: [PATCH v2 4/7] Cygwin: signal: Optimize the priority of the sig thread

2024-12-03 Thread Corinna Vinschen
On Dec 3 21:36, Takashi Yano wrote: > On Mon, 2 Dec 2024 15:25:54 +0100 > Corinna Vinschen wrote: > > On Nov 29 20:58, Takashi Yano wrote: > > > On Wed, 27 Nov 2024 17:53:53 +0100 > > > Corinna Vinschen wrote: > > > Hmmm, just setting THREAD_PRIORITY_NORMAL might be appropriate. > > > See v3 patch

Re: [PATCH v2 4/7] Cygwin: signal: Optimize the priority of the sig thread

2024-12-03 Thread Takashi Yano
On Mon, 2 Dec 2024 15:25:54 +0100 Corinna Vinschen wrote: > On Nov 29 20:58, Takashi Yano wrote: > > On Wed, 27 Nov 2024 17:53:53 +0100 > > Corinna Vinschen wrote: > > Hmmm, just setting THREAD_PRIORITY_NORMAL might be appropriate. > > See v3 patch. > > > > > The culprit of the behaviour you're se

Re: [PATCH v2 4/7] Cygwin: signal: Optimize the priority of the sig thread

2024-12-02 Thread Corinna Vinschen
On Nov 29 20:58, Takashi Yano wrote: > On Wed, 27 Nov 2024 17:53:53 +0100 > Corinna Vinschen wrote: > Hmmm, just setting THREAD_PRIORITY_NORMAL might be appropriate. > See v3 patch. > > > The culprit of the behaviour you're seeing is the fact that *all* > > cygthread's are running with THREAD_PRIO

Re: [PATCH v2 4/7] Cygwin: signal: Optimize the priority of the sig thread

2024-11-29 Thread Takashi Yano
On Wed, 27 Nov 2024 17:53:53 +0100 Corinna Vinschen wrote: > On Nov 26 17:55, Takashi Yano wrote: > > Previously, the sig thread ran in THREAD_PRIORITY_HIGHEST priority. > > This causes a critical delay in the signal handling in the main thread > > if too many signals are received rapidly and the C

Re: [PATCH v2 4/7] Cygwin: signal: Optimize the priority of the sig thread

2024-11-27 Thread Corinna Vinschen
On Nov 26 17:55, Takashi Yano wrote: > Previously, the sig thread ran in THREAD_PRIORITY_HIGHEST priority. > This causes a critical delay in the signal handling in the main thread > if too many signals are received rapidly and the CPU is very busy. > In this case, most of the CPU time is allocated

[PATCH v2 4/7] Cygwin: signal: Optimize the priority of the sig thread

2024-11-26 Thread Takashi Yano
Previously, the sig thread ran in THREAD_PRIORITY_HIGHEST priority. This causes a critical delay in the signal handling in the main thread if too many signals are received rapidly and the CPU is very busy. In this case, most of the CPU time is allocated to the sig thread, so the main thread cannot