Re: [PATCH v4] Cygwin: signal: Optimize the priority of the sig thread

2024-12-03 Thread Takashi Yano
On Tue, 3 Dec 2024 15:31:01 +0100 Corinna Vinschen wrote: > On Dec 3 23:01, 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 CP

Re: [PATCH v4] Cygwin: signal: Optimize the priority of the sig thread

2024-12-03 Thread Corinna Vinschen
On Dec 3 23:01, 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 v4] Cygwin: signal: Optimize the priority of the sig thread

2024-12-03 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