Re: [discuss] Change scheduleAtFixedRate to scheduleWithFixedDelay in GarbageCollectorThread

2024-04-16 Thread Enrico Olivelli
Il giorno mar 16 apr 2024 alle ore 11:06 ZhangJian He ha scritto: > > Hi teams. Current scheduling mechanism for garbage collection uses > scheduleAtFixedRate. This approach schedules the next execution without > considering whether the current task has finished, potentially leading to >

[discuss] Change scheduleAtFixedRate to scheduleWithFixedDelay in GarbageCollectorThread

2024-04-16 Thread ZhangJian He
Hi teams. Current scheduling mechanism for garbage collection uses scheduleAtFixedRate. This approach schedules the next execution without considering whether the current task has finished, potentially leading to overlapping executions if a task takes longer than expected. In my test environment,