This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
brett122798's profile picture

[Lua]Background Processes?

Started by brett122798, 26 July 2012 - 06:59 PM
brett122798 #1
Posted 26 July 2012 - 08:59 PM
I don't know if background processes would be easy or not but.. what I want is, in my OS, while operating it, it is always running rednet.receive(). Is that possible to do so?
Cranium #2
Posted 26 July 2012 - 09:04 PM
If you check the APIs for the "parallel", you might just find what you're looking for.
brett122798 #3
Posted 26 July 2012 - 09:07 PM
If you check the APIs for the "parallel", you might just find what you're looking for.
Hmm.. it says you can multitask but I don't understand how to use it.. can you give me a code example?
Cranium #4
Posted 26 July 2012 - 09:11 PM
Sorry, never used it myself, so can't… Someone else will probably help out though.
Exerro #5
Posted 26 July 2012 - 09:20 PM
I've never used it but I think u need two functions and then put parallel.waitForAny(func1, func2)

also, can I help with ur os coz I made one and it kinda failed and I want to have a new start
brett122798 #6
Posted 26 July 2012 - 09:42 PM
I've never used it but I think u need two functions and then put parallel.waitForAny(func1, func2)

also, can I help with ur os coz I made one and it kinda failed and I want to have a new start
Want me to make a server and you could join?
Pinkishu #7
Posted 27 July 2012 - 10:55 AM
http://www.computercraft.info/forums2/index.php?/topic/2030-tutorial-parallel-api/ :)/>/>