Kill a process
Author |
Message |
Gunz
|
Posted: Tue Dec 28, 2010 6:05 pm Post subject: Kill a process |
|
|
What is it you are trying to achieve?
I want to process to stop executing as soon as a variable becomes "true"
What is the problem you are having?
I want to stop a process from happening when I want.
Describe what you have tried to solve this problem
Post any relevant code (You may choose to attach the file instead of posting the code if it is too long)
Please specify what version of Turing you are using
<Answer Here> |
|
|
|
|
|
Sponsor Sponsor
|
|
|
Tony
|
Posted: Tue Dec 28, 2010 7:07 pm Post subject: RE:Kill a process |
|
|
I'm assuming that you mean Turing's "fork" process. A process terminates when you come to the end of it; same as coming to the end of a procedure or a function, there are many ways of doing so. exit and return are commonly used. |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
|
Gunz
|
Posted: Tue Dec 28, 2010 7:13 pm Post subject: Re: Kill a process |
|
|
Yes, I forked it and I want it to end when my variable becomes true, so will exit or return work in that case Thanks a whole lo!!! |
|
|
|
|
|
TokenHerbz
|
Posted: Tue Dec 28, 2010 7:42 pm Post subject: RE:Kill a process |
|
|
it will yes, if you have the "if this is true then exit" in it. i recommend at the top, since you dont want to process to work it will exit before excecuting.
that is to say, one way, i guess you could also have the if in the loop where if its false you will call the process to execute... |
|
|
|
|
|
|
|