All Questions

520
votes
19answers
455411 views

Is there any way to kill a Thread in Python?

Is it possible to terminate a running thread without setting/checking any flags/semaphores/etc.?
146
votes
35answers
337999 views

How to stop C++ console application from exiting immediately?

Lately, I've been trying to learn C++ from this website. Unfortunately whenever I try to run one of the code samples, I see that program open for about a half second and then immediately close. Is the...
41
votes
4answers
28714 views

Why not to start a thread in the constructor? How to terminate?

I am learning how to use threads in Java. And I wrote a class that implements Runnable to run concurrently to another thread. The main thread handles listening to the serial port where as the second t...
49
votes
4answers
18186 views

Self-Terminating AWS EC2 Instance?

Is there a way that Amazon Web Services EC2 instances can be self terminating? Does Amazon have anything that allows an instance to terminate itself ("Hara-Kiri") after running for more than say an h...
92
votes
3answers
21076 views

SBT stop run without exiting

How do you terminate a run in SBT without exiting? I'm trying CTRL+C but it exits SBT. Is there a way to only exit the running application while keeping SBT open?
9
votes
6answers
19150 views

Terminate a process tree (C for Windows)

This has been asked before but I can't find a definitive answer, in code. I open a process, ProcessA (with PID 1234). This process opens a child process, ProcessAB (PID 5678). After I'm done I termin...
6
votes
2answers
3414 views

IOS Getting location updates when app terminated without using significantChange

I apologise for the redundancy of this topic, but in spite all the given answers, I can't identify the possibility of getting accuracyBest location updates when the app is terminated. I don't want to...
17
votes
8answers
28634 views

C# Process Killing

I need to write a program in c# that would just start, kill one process\exe that it is supposed to kill and end itself. The process I need to kill is another C# application so it is a local user pro...
8
votes
3answers
8455 views

Can you track when an android application has been terminated?

Looked at android documentation and it appears that we don't have the ability to know when an app shuts down. Whether it was explicitly by the user or automatically by the operating system. Below is...
4
votes
1answers
726 views

check if thread finished its method before "killing" it c#

I have 2 threads in my program. 1 is handling a GUI and the other is doing some word automation. Lets call them GUIThread and WorkerThread. The WorkerThread is looping through methods using recursion...

Previous Next