Scheduler overhead due to unused mutex and queues


I need help to understand how the scheduler work. I have a legacy project where there are several mutexes or queues that are created but they are not use.

So my question is if this could affect the overhead of the scheduler and how much could be?

My understanding is that the scheduler in each interrupt iteration search if any value is added to a queue or if any task has try to get a mutex, so I’m assuming it search then by a list? So if there are unused queues or mutex this will slow the process, am I right?

Thank you in advance,


That is not how it works at all. The only overhead will be the RAM used to hold the data structures of the unused queue and mutexes - there will be no run-time impact at all.