The invention discloses an industrial real-time task grading isolation scheduling method and
system based on an LXC container, and relates to the technical field of industrial real-time operating systems, and the method comprises the following steps: S1, carrying out NUMA
perception resource division on physical hardware, isolating a CPU core according to a task key level, reserving a
memory bandwidth channel, and carrying out direct
connection control on real-time equipment; and S2, creating a customized LXC runtime environment, constructing a real-time
namespace, establishing a security isolation domain through
mandatory access control, and optimizing container context switching overhead. According to the industrial real-time task hierarchical isolation scheduling method and
system provided by the invention, through an innovative resource division and management mechanism, the efficiency and reliability of industrial real-time task scheduling are remarkably improved, task resources of different key levels are effectively isolated, resource competition is reduced, the real-
time response capability of high-priority tasks is ensured, and the scheduling efficiency of the industrial real-time tasks is improved. The
resource utilization rate is improved, and the adaptability and stability of the
system are enhanced.