Jump to content




[Lua]Background Processes?


  • You cannot reply to this topic
6 replies to this topic

#1 brett122798

  • Members
  • 300 posts
  • LocationIn the TARDIS at an unknown place in time.

Posted 26 July 2012 - 07:59 PM

I don't know if background processes would be easy or not but.. what I want is, in my OS, while operating it, it is always running rednet.receive(). Is that possible to do so?

#2 Cranium

    Ninja Scripter

  • Moderators
  • 4,031 posts
  • LocationLincoln, Nebraska

Posted 26 July 2012 - 08:04 PM

If you check the APIs for the "parallel", you might just find what you're looking for.

#3 brett122798

  • Members
  • 300 posts
  • LocationIn the TARDIS at an unknown place in time.

Posted 26 July 2012 - 08:07 PM

View Postcraniumkid22, on 26 July 2012 - 08:04 PM, said:

If you check the APIs for the "parallel", you might just find what you're looking for.
Hmm.. it says you can multitask but I don't understand how to use it.. can you give me a code example?

#4 Cranium

    Ninja Scripter

  • Moderators
  • 4,031 posts
  • LocationLincoln, Nebraska

Posted 26 July 2012 - 08:11 PM

Sorry, never used it myself, so can't... Someone else will probably help out though.

#5 Exerro

  • Members
  • 801 posts

Posted 26 July 2012 - 08:20 PM

I've never used it but I think u need two functions and then put parallel.waitForAny(func1, func2)

also, can I help with ur os coz I made one and it kinda failed and I want to have a new start

#6 brett122798

  • Members
  • 300 posts
  • LocationIn the TARDIS at an unknown place in time.

Posted 26 July 2012 - 08:42 PM

View Postawsumben13, on 26 July 2012 - 08:20 PM, said:

I've never used it but I think u need two functions and then put parallel.waitForAny(func1, func2)

also, can I help with ur os coz I made one and it kinda failed and I want to have a new start
Want me to make a server and you could join?

#7 Pinkishu

  • Members
  • 484 posts

Posted 27 July 2012 - 09:55 AM

http://www.computerc...l-parallel-api/ :)/>





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users