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

Decide between HRTT or SRTT on FlexPRET platform #421

Open
magnmaeh opened this issue May 10, 2024 · 0 comments
Open

Decide between HRTT or SRTT on FlexPRET platform #421

magnmaeh opened this issue May 10, 2024 · 0 comments

Comments

@magnmaeh
Copy link
Member

Unlike other platforms, FlexPRET supports hard real-time threads (HRTTs) and soft real-time threads (SRTTs). When creating a thread using FlexPRET's API, one has a choice on whether to use a HRTT or SRTT. Usually it is the programmer's task to decide, but in lf_flexpret_support.c, the runtime must do it.

Currently, all threads are HRTTs. But the LF runtime could potentially select between HRTT or SRTT based on the importance of the task. E.g., a reaction that prints to stdout might not need to be HRTT, but one that handles physical actions from interrupts maybe should be HRTT.

Maybe reactors could be extended to have some kind of priority/importance level. Or maybe some label/additional information could be passed to the reactors that is only available when the target platform is FlexPRET. E.g., maybe something like this:

@FlexPRET(SRTT)
reactor Print {
    // ...
}

@FlexPRET(HRTT)
reactor Actuator {
    // ...
}
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

No branches or pull requests

1 participant