Home 2018 Forums Crumble Support Quick Question. Multiple Threads??

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #8645
    Dr John
    Participant

    Does the crumble support multiple threads??
    We wanted to stop a complicated program after a certain time. My students (scratch wizards) suggested adding a second start block, with a ta wait that signals the main program when to stop.

    I had never thought of this. Duly humbled, I gave it a go. We were able to drag two program start blocks onto the screen, and assemble the code.

    It didn’t work. Either one thread ran, or the other. It depended on which was on the program first.

    Question: does crumble support multiple program start blocks?
    If not, then a warning should be given for programs containing more than one program start block.

    #8652
    Dr_Alex
    Participant

    The Crumble doesn’t support multi threading as far as I know. I don’t think this was changed in the last update.

    #21005
    andyt
    Participant

    Yes that would be a good feature – even if limited in number of multi threads. I am brand new to crumble and was trying to help a class with the RAE Code and Rescue pack to make a helicopter rescue winch (controlled by a momentary switch with short & long press detection) and then add the ultrasonic sensor to stop the winch if the “person” on the end approached to near. I too simply tried two program start blocks to find only block ran. It took quite a bit of un-necessary coding to check the sensor and set a variable using inline code to get it all to work.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.