January 16, 2019 at 11:19 pm #8645Dr JohnParticipant
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.January 17, 2019 at 5:10 am #8652Dr_AlexParticipant
The Crumble doesn’t support multi threading as far as I know. I don’t think this was changed in the last update.February 28, 2020 at 1:24 pm #21005andytParticipant
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.
- You must be logged in to reply to this topic.