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

Full Multitasking

Started by ObloxCC, 04 January 2017 - 08:35 PM
ObloxCC #1
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).
Bomb Bloke #2
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?
Lupus590 #3
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.
Ilikemlp123 #4
Posted 16 January 2017 - 08:57 PM
are you aware of the bg program on adv computers or coroutines?
Anavrins #5
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.
Bomb Bloke #6
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!