<Is there a way to prevent a descendant thread fro...
# community-feeds
r
Is there a way to prevent a descendant thread from getting into cgroup of its ancestor thread automatically? I write some threads of my app to a Linux cpu cgroup, created by me, explicitly (let us talk e.g. about v1 for now, but if you know a way for v2, that would be also great). However, I see that descendant threads (created with pthread_create() called by their parent thread, which is written to the cgroup explicitly or again after its parent thread) also appear in the cgroup without me writing them directly. This affects the app not in a good way. Some threads get to the cgroup unexpectedly....