On Tue, Mar 15, 2022 at 03:49:52PM +0000, Olsson John <john.olsson@xxxxxxxxxxxxx> wrote: > As you might have already surmised it was a placeholder example to > give the general idea. I think it is time to add some more details. :) Thanks for sharing the additional description. > Assume that you have an embedded system running some kind of software > with real time like properties. You want to develop and debug your > software locally on your high-end machine since it is much more > convenient. Alas the software runs way too fast due to the difference > in performance so you can't detect overruns etc. There are certainly more knowledgeable people than me to help with debugging such environments. > One way of implementing this kind of scheduler would be to create a > fork of the FIFO scheduler that have this behavior. I think you've complete info now how threads are handled with cgroups. Good luck with the fork :-) Michal