Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raising priority of i2s task prevents main task time-slicing in #999

Merged
merged 1 commit into from
Aug 15, 2023

Conversation

vector76
Copy link
Contributor

Maybe too "inconsequential" but through instrumentation I determined that the main task can interrupt the i2sout task while it is running. This happens about once per minute while motion is happening, or perhaps more.

I think this interruption is extremely unlikely to produce an observable effect, but in the worst case if the main task doesn't yield or block for a while, the i2sout task could stall by up to the timeslice interval, which I think is 1 ms.

I did an experiment where I raised the priority by one, and the interruptions never happened after that, and I saw no other effects.

@MitchBradley MitchBradley changed the base branch from main to Devt August 15, 2023 16:48
@MitchBradley MitchBradley merged commit 18d2a15 into bdring:Devt Aug 15, 2023
12 checks passed
@vector76 vector76 deleted the i2s_task_raised_priority branch August 15, 2023 18:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants