Skip to content
Discussion options

You must be logged in to vote

I'd suggest starting with a regular worker. They are almost always enough and a bit simpler. From what you describe, that seems to be the case here.

There is an example of workers in this repository. That's a good place to start exploring.

Workers (and Shared Workers) in the Moddable SDK are documented.

...doesn't a sharedworker use the same VM as main?

No.

As background, I'm trying to run a 100Hz interrupt handler type task in a shared worker to update IMU information and hope that will run time-sliced with poco.end

Yes, it will. On an ESP32 those will run independently on separate cores. They can only run independently if they are separate VMs, naturally.

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
1 reply
@tve
Comment options

Answer selected by tve
Comment options

You must be logged in to vote
6 replies
@tve
Comment options

@phoddie
Comment options

@tve
Comment options

@tve
Comment options

@phoddie
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants