Jump to content




Full Multitasking


5 replies to this topic

#1 ObloxCC

  • Members
  • 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).

#2 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (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?

#3 Lupus590

  • Members
  • 2,029 posts
  • LocationUK

Posted 04 January 2017 - 11:18 PM

View PostBomb Bloke, on 04 January 2017 - 10:51 PM, said:

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.

#4 Ilikemlp123

  • Members
  • 12 posts

Posted 16 January 2017 - 08:57 PM

are you aware of the bg program on adv computers or coroutines?

#5 Anavrins

  • Members
  • 775 posts

Posted 16 January 2017 - 09:38 PM

View PostIlikemlp123, on 16 January 2017 - 08:57 PM, said:

are you aware of the bg program on adv computers or coroutines?
Coroutines are not multitasking, they still run one thread at a time.

#6 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (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!





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users