python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
SingleThreadScheduledExecutor or Timer scheduleAtFixedRate but don't catch up?
Currently I'm using an Executors.newSingleThreadScheduledExecutor() to schedule a task periodically. The ScheduledExecutorService provides two options for this, namely:
ScheduledExecutorService#sched...
stonar96
Votes: 0
Answers: 1
How to find the number of active threads and free threads in the thread pool for ScheduledExecutorService?
We are using ScheduledExecutorService for our project and I would like to know how to find the number of free threads available in the thread pool before executing some functions.
private static final...
orange_army
Votes: 0
Answers: 2
Why is the ScheduledExecutorService not working as expected?
I am creating a pool of 10 threads
Each thread runs for 3 seconds
I set the startup period of each task to 0.5 seconds
The question is, if the pool consists of 10 threads, and the startup period is 0....
Thomazzz
Votes: 0
Answers: 3
ScheduledExecutorService schedule at fixed rate not working as accurate as expected
I have a Java project (Java 8) that should execute a task every 10ms. I use java ScheduledExecutorService to run the task:
ScheduledExecutorService executorService = Executors.newSingleThreadScheduled...
Noy Gafni
Votes: 0
Answers: 2