# Real time scheduling

**URL:** <https://forums.balena.io/t/real-time-scheduling/14448>\
**Category:** balenaOS\
**Created:** [June 8, 2019, 1:43am UTC](https://forums.balena.io/t/real-time-scheduling/14448 "2019-06-08T01:43:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jacobrosenthal](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/jacobrosenthal/32/1466_2.png) [@jacobrosenthal](https://forums.balena.io/u/jacobrosenthal)\
**Post date:** [June 8, 2019, 1:43am UTC](https://forums.balena.io/t/real-time-scheduling/14448/1 "2019-06-08T01:43:17Z")

</div>

Im trying to get by with a few real time things gpio bit banging in linux and its going poorly, drastically so as temp throttling kicks in.

(totally related to my last post 🙂 ) I realize this is ridiculous in the context of containers, but hey, why not.

I played around with chrt attempting to give my process different scheduling and priority and didnt see any real gain.

I dont know if it matters but it is a multicontiner project, and both containers are privileged.

Any other thoughts on giving one container or process more priority?

---

<div class="post-metadata">

**Author:** ![CameronDiver](https://avatars.discourse-cdn.com/v4/letter/c/2acd7d/32.png) [@CameronDiver](https://forums.balena.io/u/CameronDiver)\
**Post date:** [June 10, 2019, 11:57am UTC](https://forums.balena.io/t/real-time-scheduling/14448/3 "2019-06-10T11:57:26Z")

</div>

hey @jacobrosenthal

If it’s temp throttling caused by your gpio code, I’m not sure there’s much you can do, but if you think the other container is adding more load than it needs to, perhaps try using the CPU flags detailed here: [https://docs.docker.com/v17.09/engine/admin/resource\_constraints/](https://docs.docker.com/v17.09/engine/admin/resource_constraints/)
