Critical Section Behavior
Posted: Thu Nov 14, 2024 12:07 pm
Suppose that a Task on Core 1 has entered a Critical Section (i.e. taskENTER_CRITICAL(&lock)). Now suppose a Task (not an ISR) on Core 0 attempts to enter a Critical Section using the same lock object. Will that cause all of Core 0 to “hang” and spin waiting for lock to become available? Or, will that Core 0 Task simply block and wait for the lock to become available (similar to waiting for a Mutex)? The latter method would allow other Tasks and ISRs to continue running on Core 0 while the one Task blocks.
Thanks.
Thanks.