Question
Ada allows the base priority of a task to be set dynamically. Using the Ada. Dynamic.Priorities package, show how to implement a mode change protocol where a group of tasks must have their priorities changed as a single atomic operation.
Step 1
You will need the `Ada.Dynamic_Priorities` package to change task priorities dynamically. Additionally, import any other packages required for task management and synchronization, such as `Ada.Task_Identification` and `Ada.Synchronous_Task_Control`. Show more…
Show all steps
Your feedback will help us improve your experience
200,000+
Students learning Biology with Numerade
Trusted by students at 8,000+ universities
Watch the video solution with this free unlock.
EMAIL
PASSWORD