Questions tagged [termination]

is used in its general meaning, but it is bounded by the programming scope.

351 questions
0
votes
3 answers

How to terminate a Task in Java with guarantee?

In question How to timeout a thread the suggested solution works with the ExecutorService class, where one can submit a Runnable object to be executed. The ExecutorService class provides the two methods shutdown and shutdownNow to stop the execution…
John Threepwood
  • 15,593
  • 27
  • 93
  • 149
0
votes
1 answer

Terminating a running while loop at run-time

I have some problems with controlling a while loop inside an event structure. Say I have an iterative procedure and I want to stop the iterations during run-time (say to check out the results). while(resid > 1e-10 ) { for (int iter = 0;iter <…
Mohammed
  • 87
  • 1
  • 1
  • 7
-1
votes
2 answers

Is there a way to stop a Puma/Rack server on a HTTP request?

I have a Ruby app (written in Roda, running as a Rack app on Puma) which I want to be able to stop on a click of a button in the browser - basically to stop the server on request. What would be a good way to do that?
art-solopov
  • 4,289
  • 3
  • 25
  • 44
-1
votes
2 answers

How to end a process in c++?

Okay, so I want to write a c++ program that can end a specific process currently running. I have searched the internet and none of the solutions i have come across make sense to me. is there a simple way to end a process?
Geekman
  • 2,513
  • 3
  • 16
  • 10
-1
votes
1 answer

Terminate the recursion before discovering all the states

I wrote the following function and the output for the program is correct. However, the program discovers all possible states while doing the recursion, which means the program can be done more efficient. Basically, I need the recursion to terminate…
stackoverload
  • 119
  • 1
  • 6
-1
votes
3 answers

Swift IOS launch notification when app terminated

I would like to send a notification when my app is terminated. Is this possible using background processes to send a message as the app is killed? I'm using swift. Thanks, Rob.
Rob Brew
  • 51
  • 4
-1
votes
1 answer

Delphi OmniThreadLibrary 3.03b: IBackgroundWorker - Termination doesn't work

I have problem with termination of BackgroundWorker in OmniThreadLibrary. Everything is OK, but when I want to terminate BackgroundWorker, termination has failed and BackgroundWorker is still alive. So, whole application that run as batch process is…
-1
votes
3 answers

How to prevent a windows application from being killed/terminate or stop

I have a windows c++ application which runs under the normal (non-admin) user. I want that no user should be able to close/stop/terminate this application by any means. Is there any active directory group policy available to achieve this or I need…
-1
votes
2 answers

Use HOST as a DEVICE

I work on OpenCL, and I have got only a CPU i3 core Duo => I possess only 1 device at all (my CPU). So basically, I guess my HOST (cpu) will also be the DEVICE. I tried to launch a kernel but the task assigned to the DEVICE (which is also the HOST)…
Algernon2
  • 23
  • 5
-1
votes
1 answer

Ackermann Termination: Root Cause Analysis

Probably not a lot of explanation needed as to what this is, and it even works exactly the way I want it to. My real problem is program termination. I've output traced my return values and the nested for loops I'm using in my main function to step…
-1
votes
1 answer

"Abnormal program termination" is displayed on execution of c program

The following code is a part of my user defined function in c void genprime(long int m,long int n) { long int j,k,p[10000]={0},c,c1,c2,r; int flag=0; } The function contains the logic to generate primes.I declared all variables type as long…
-1
votes
4 answers

Is it possible to fit in a ternary operator as the termination in a for loop?

So, I just want to know if its possible to slip in any code or a ternary operator inside the termination bit of a for loop. If it is possible, could you provide an example of a ternary operator in a for loop? Thanks! for (initialization;…
nextDouble
  • 43
  • 4
-1
votes
1 answer

Terminating app due to uncaught exception 'NSGenericException'

I get this error once in a while when my program is running. Most of the time, the app works fine, but every now and then the app will crash and point to the second line in the for loop saying: Terminating app due to uncaught exception…
user2905147
  • 21
  • 2
  • 4
-1
votes
3 answers

Terminate Shell command

I've been executing such a large .SH file via Cygwin. I just want terminate the execution of .SH while executing (like ctrl+x in command prompt).. What key combination needs to be given for terminating .SH file execution while executing? Please help…
Whiz Kid
  • 89
  • 1
  • 2
  • 6
-1
votes
2 answers

issue with terminating through -1

I need to use -1 to terminate but still display the summary. Every time that I've tried and have gotten it to terminate the program, it doesn't go ahead and display the summary. There are up to 10 trials, if you don't have enough information for 10…
confuseduser
  • 23
  • 1
  • 1
  • 4
1 2 3
23
24