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)
Android CountDownTimer won't work in Runnable concurrent task
I have an Android application which has an onClick() handler from a button that starts an asynchronous Runnable task. Partway through, it's supposed to start a new CountDownTimer of 5 seconds, update ...
T M
Votes: 0
Answers: 0
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
sleuth trace id not getting printed for concurrent calls
In the log, for concurrent calls trace and span id are not getting printed. But for other calls, I can see it's getting printed.
Below is my code.
@RestController
public class GetStudent implements IG...
Vaibs
Votes: 0
Answers: 1
How can I pause a thread while the state remains Runnable?
I am trying to think of a way to keep a thread running for a few seconds without terminating, keeping the state as Runnable, i.e. without changing the thread state, say to Blocked or Waiting. (This is...
Victor Grazi
Votes: 0
Answers: 1