Skip to content

Do not use process priority max as per OTP guidelines #141

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

Merged
merged 1 commit into from
May 8, 2023

Conversation

NelsonVides
Copy link
Collaborator

As described in https://www.erlang.org/doc/man/erlang.html#process_flag_priority

Priority level max is reserved for internal use in the Erlang runtime system, and is not to be used by others.

@NelsonVides NelsonVides marked this pull request as ready for review May 8, 2023 12:14
@NelsonVides NelsonVides requested a review from DenysGonchar May 8, 2023 12:15
We set the priority to high after starting the scenario,
and then reset priority to normal after terminating it.
The most important part is precise timing for users spawning/removal,
so priority is higher in between init and terminate.
Copy link
Collaborator

@DenysGonchar DenysGonchar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@DenysGonchar DenysGonchar merged commit 03199b5 into master May 8, 2023
@NelsonVides NelsonVides deleted the process_flag branch June 2, 2024 15:35
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