Questions tagged [isalive]
9 questions
2
votes
1 answer
Be sure Weakreference is still existing after IsAlive
If i iterate over a list of Weakreferences, how can i be sure, the reference still exists, after proofing via _ref.IsAlive?
For example i have this piece of code, where scopeReferences is a of Weakreferences:
foreach (var _ref in scopeReferences)
{
…

BendEg
- 20,098
- 17
- 57
- 131
1
vote
0 answers
Galera mysql check for HAProxy
I am using Galera cluster with 3 nodes. I am using HAProxy as a load-balancer. I currently using a mysql check script that is written for Percona cluster and after some deadlock problems I suspect that the script may be the issue. I've modified the…

SapManTM
- 126
- 1
- 10
1
vote
0 answers
Quickest way to check if ip address is alive
What is the fastest/quickest way to check if an ip address is alive or not?
EDIT
It is in a local LAN. It would be used to check for example if the ip is assigned to a network printer. And this would also have to be able to be down from code,…

user3660338
- 296
- 5
- 23
1
vote
1 answer
What HTTP status codes to use to represent success/failure of IsAlive for web requests?
I have a web application, for which I have an isalive page that gets hit on a regular basis (monitoring) to make sure my application is working (or is alive as the name suggests).
In general, this isalive functionality/page is very light in terms of…

Mahesh Velaga
- 21,633
- 5
- 37
- 59
0
votes
2 answers
problem : python threads still alive after completion
As an exercise, I try to implement a non blocking mechanism to manage my own pool of threads (I know concurrent.futures). I ended with a problem: threads are always alive, even after they have completed.
I have written this little code to expose the…

DuGNu
- 81
- 9
0
votes
1 answer
ProcessHandle returns ambiguous results
I've two Java 11 methods that check whether a process for a given PID is running:
public static final boolean isProcessRunning( final long pid ) {
Optional< ProcessHandle > optionalProcess = ProcessHandle.of( pid );
return…

Tobias F.
- 3
- 1
0
votes
0 answers
ConcurrentMap is not concurrent? Can't remove a node from check-alive-system
I'm trying to have concurrency on a thread in my check-"AliveSystem" which is on every node in the cluster for sending alive-packets and checking if another node sent his alive-packet under the given time with max. 3 fails.
gotAlive() is executed…

RoboFlax
- 135
- 3
- 14
0
votes
0 answers
is there a isAlive method in C to check the status of a thread?
I need a method, like "isAlive" in java, to use in my C project to know the state of a pthread.
While I was searching online I didn't manage to find anything. Do you guys have any suggestion?
user6793527
0
votes
1 answer
sometimes threads still alive after code end
I had to write a multithreaded program in vb that can process files in a directory simultaniusly.
Th problem is that it runs fine for some hours. Then it suddenly stucks at the "Thread.Sleep(500)" because all the 3 thread isAlive method returns with…

user3219009
- 19
- 1
- 6