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

Multitasking

Started by laica10, 06 February 2016 - 03:55 PM
laica10 #1
Posted 06 February 2016 - 04:55 PM
Hey guys,

I am still learning a bit about multitasking but
i started a new project in computer craft and
i need the main file to keep running and being
able to open other files, like an OS, Windows keeps
running and is able to open files but how can
i tell the computer to open this file and do
what ever is in there while still running the main
file that keeps checking if you clicked start
or interact with the OS.

(BTW i was experimenting with the parallel API)
Lupus590 #2
Posted 06 February 2016 - 05:15 PM
first things first: http://www.computercraft.info/forums2/index.php?/topic/25670-bbs-guide-to-coroutines/

If the parallel API don't do what you need then you will have to make your own coroutine manager, look at how multi-shell works.
laica10 #3
Posted 06 February 2016 - 05:17 PM
I'll check it out