Linux内核更改默认的CPU调度程序 [英] Linux Kernel Changing Default CPU Scheduler

查看:228
本文介绍了Linux内核更改默认的CPU调度程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试破解Linux内核,我想知道.如何用另一个更改默认的Linux Process Scheduler?我可以将每个流程设置为实时流程吗?

I am trying to hack the Linux kernel and I am wondering. How can I change the default Linux Process scheduler with another one? And can I just set every processes as a real time process?

推荐答案

这篇文章有些过时了,但是无论如何,我希望这对您有所帮助... 我遇到了类似的问题,并且对Linux内核实施了破解,以使RR成为默认的CPU调度程序.最终,hack基本上改变了shed_fork函数,如前面的评论中指出的那样.这是我为实现该代码而编写的代码: https: //aelseb.wordpress.com/2016/01/06/change-linux-cpu-default-scheduler/

This post is a little bit dated, but anyway I hope this can help... I had similar problem and I implemented a hack to Linux Kernel to make RR the default CPU scheduler. In the end the hack basically changes the shed_fork function, as pointed out in previous comments. Here is the code I made to implement that: https://aelseb.wordpress.com/2016/01/06/change-linux-cpu-default-scheduler/

这篇关于Linux内核更改默认的CPU调度程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆