Linux内核更改默认的CPU调度程序

编程入门 行业动态 更新时间:2024-10-27 08:29:33
本文介绍了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/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: aelseb.wordpress/2016/01/06/change-linux-cpu-default-scheduler/

更多推荐

Linux内核更改默认的CPU调度程序

本文发布于:2023-11-25 08:03:53,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1628964.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:内核   程序   Linux   CPU

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!