Posted 03 March 2015 - 08:26 PM
Hi guys,
I'm working on an OS at the moment (just for coding practice and more in depth understanding of lua) and I came to the multitasking part. I looked at the multishell files and I do not totally understand how multishell works.
1st: How does it know it has to change the tab even if the function is not yielding?
2nd: How does it work in general?
You can look at the OS if you want ( you can find it here : TheOS) and give suggestions. Any constructive comment is welcome!
~Creator
PS: I googled about coroutines before asking but still don't totally get it. Moreover it feels like cheating if I used the Computercraft standart Multishell.
I'm working on an OS at the moment (just for coding practice and more in depth understanding of lua) and I came to the multitasking part. I looked at the multishell files and I do not totally understand how multishell works.
1st: How does it know it has to change the tab even if the function is not yielding?
2nd: How does it work in general?
You can look at the OS if you want ( you can find it here : TheOS) and give suggestions. Any constructive comment is welcome!
~Creator
PS: I googled about coroutines before asking but still don't totally get it. Moreover it feels like cheating if I used the Computercraft standart Multishell.
Edited on 03 March 2015 - 07:27 PM