Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Kill a process
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Gunz




PostPosted: 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)


Turing:






Please specify what version of Turing you are using
<Answer Here>
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: 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.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Gunz




PostPosted: 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




PostPosted: 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...
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 4 Posts ]
Jump to:   


Style:  
Search: