Here is my question.
Can I change the priority of "CAS-TCP" thread and "scan-10"
thread so that the former is given a higher priority than
that of the latter without modifying any source files in
base?
Does the site you guided me to answer the question?
As per the README of the MCoreUtils, one of its features is
Changing priorities of callback, driver or communication threads with respect to database processing.
Which is exactly what your question is about.
The MCoreUtils facility allows rule-based manipulation of thread properties, so that things like changing a priority will apply to all threads with a name matching a specific pattern, whenever they will be created on that IOC.
Why do you want to change the priority of "CAS-TCP"? Note that this is not a "general purpose thread", but one of the core threads of the Channel Access server.
(From the MCoreUtils documentation:)
Warning
The default priorities of the EPICS IOC threads are well-chosen. They have been proven to ensure reliable IOC operation and communication, in many installations, under a variety of circumstances.
Manipulating the real-time properties, especially scheduling policies and priorities, may have unwanted side effects. Use this feature sparingly, and test well.
Cheers,
~Ralph