Posted 13 July 2015 - 08:47 PM
Hello, I know their is no true multitasking in computercraft but I thought that their must be a way to do something similar.
So my question is, how can I run a program which allows me to do one process (like running one function) Whilst I wait for a rednet response. One application of this I though out was having a turtle executing a program where it is digging or whatever until it receives a rednet message which could allow me to terminate the process remotely and have it execute another function. I thought this could also be useful for having a computer being able to run a shell or a program until it receives a rednet event making it do something else.
So I was wondering if anyone can help me out with running functions or programs almost simultaneously.
So my question is, how can I run a program which allows me to do one process (like running one function) Whilst I wait for a rednet response. One application of this I though out was having a turtle executing a program where it is digging or whatever until it receives a rednet message which could allow me to terminate the process remotely and have it execute another function. I thought this could also be useful for having a computer being able to run a shell or a program until it receives a rednet event making it do something else.
So I was wondering if anyone can help me out with running functions or programs almost simultaneously.
Edited on 13 July 2015 - 06:56 PM