38 posts
Posted 04 January 2017 - 09:35 PM
It would be a great and useful idea to add full multitasking to computercraft (lua also is lacking multitasking).
7083 posts
Location
Tasmania (AU)
Posted 04 January 2017 - 10:51 PM
"Full" how? What do you think you could do with this that you can't currently do now?
2427 posts
Location
UK
Posted 04 January 2017 - 11:18 PM
What do you think you could do with this that you can't currently do now?
Get a race condition.
Have well parralised code run quicker than it's single threaded equivulent.
12 posts
Posted 16 January 2017 - 08:57 PM
are you aware of the bg program on adv computers or coroutines?
756 posts
Posted 16 January 2017 - 09:38 PM
are you aware of the bg program on adv computers or coroutines?
Coroutines are not multitasking, they still run one thread at a time.
7083 posts
Location
Tasmania (AU)
Posted 17 January 2017 - 05:31 AM
Er, yes, multishell's implementation is considered "multitasking" - simultaneous execution of processes isn't required to meet that definition. Pretty much the whole point of most multitasking systems is to "pretend" to process stuff at the same time, because at the end of the day a processor only has so many cores!