摘要 |
Disclosed are a method and an apparatus for scheduling a pipeline of multiprocessor-based motion control software. According to the present invention, provided is a method for scheduling a pipeline of multiprocessor-based motion control software, the method comprising: (a) calculating, by an admission control program, a parameter for scheduling a pipeline using a maximum allowable period and an execution time for each of N motion tasks, wherein the parameter includes an optimal periodic value, a task offset and an input/output offset for each of the N tasks; (b) generating, by a coordinator program, N motion tasks, wherein one of the N motion tasks is determined to be a reference task, and the other is determined to be a non-reference task; (c) allowing, by the reference task and the non-reference task, an operating system to generate a task wakeup timer and an input/output (I/O) initiating timer; and (d) setting, by the non-reference task, a task offset and an input/output offset for an own timer on the basis of the task wakeup timer of the reference task. |