There is a small misunderstanding. Beancounters have nothing to do with tasks directly and don't do task groupping.
Look, there are a lot of resources which can be shared: pages, IPCs, files etc. Task groupping doesn't help anyhow since the same file can belong to 2 different tasks in 2 different resource groups.
So tasks if accounted are just the same kind of abstract objects just like any other are (files, sockets, ...).
And beancounters do not track and do not have a list of the objects.
Instead, beancounters do:
- beancounters are referenced to _by_ all the charged objects (not otherwise) to make uncharging correct (objects freeing can be done in arbitrary context).
Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds