1、cpu运行队列:struct rq,
1)lock:每个cpu都有一个运行队列,对该队列加锁的规则是当需要同时操作多个运行队列时,例如负载均衡或线程迁移,获取锁的顺序必须是运行队列的升序进行。
2)nr_running:
3)struct load_weight load:从该运行队列上的所有任务中计算出总负载
4)struct cfs_rq cfs:cfs 调度算法的运行队列
5)struct rt_rq rt: 实时调度算法的运行队列
6)struct task_struct *curr:该cpu正在运行的任务
7)struct task_struct *idle: 用于在cpu上空跑的任务,占位的作用,优先级最底
8)int cpu: 当前运行队列对应的cpu
9)int online: 当前cpu是否处于online状态
10)unsigned long avg_load_per_task: 该运行队列上所有任务的平均负载
11)struct task_struct *migration_thread: 要迁移的线程