xref: /aosp_15_r20/test/dittosuite/example/sched_policies.ditto (revision 6fa2df46f119dce7527f5beb2814eca0e6f886ac)
1main: {
2  multithreading: {
3    fork: false;
4    threads: [
5      {
6        name: "Deadline"
7        sched_attr: {
8          deadline: {
9            policy: DEADLINE,
10            runtime:  30000000,
11            deadline: 40000000,
12            period:   40000000,
13          }
14        }
15        instruction: {
16          cpu_work: {
17            utilization: 0.1
18          }
19          repeat: 100,
20          period_us: 40000
21        },
22      },
23      {
24        name: "RtHighPrio"
25        sched_attr: {
26          rt: {
27            policy: FIFO, priority: 99
28          }
29        }
30        instruction: {
31          cpu_work: {
32            utilization: 0.2
33          }
34          repeat: 100,
35          period_us: 60000
36        },
37      },
38      {
39        name: "RtLowPrio"
40        sched_attr: {
41          rt: {
42            policy: FIFO, priority: 1
43          }
44        }
45        instruction: {
46          cpu_work: {
47            utilization: 0.5
48          }
49          repeat: 100,
50          period_us: 50000
51        },
52      }
53    ]
54  }
55}
56global: {}
57