Ada Conformity Assessment Authority      Home Conformity Assessment   Test Suite ARGAda Standard
Overview of Ada 2022
Jeff Cousins
Contents   Index   Search   Previous   Next 

6.8 CPU Affinity for Protected Objects

CPU Affinity for Protected Objects (AI12-0281) allows the CPU aspect to be applied to a protected type, not just a task type (see RM D.16). If all tasks that invoke protected operations of a protected object are on the same CPU as the protected object then it is possible for the runtime to avoid the overhead of acquiring a lock, and also avoid the risk of deadlock.
Program_Error is raised if a task on one CPU attempts to invoke a protected operation of a protected object on another CPU.

Contents   Index   Search   Previous   Next 
© 2021, 2022 Jeff Cousins