Re:Replacing Linux with a Database System
by unixietube on Saturday July 28, 2018 @10:00PM
(#17636092)
Yup, I believe the kernel pretty much just uses linked lists (at least, all of the running processes are kept as a linked list). But when most of your resources only number in the tens of thousands, if that, a linked list works perfectly well. And I’m not a kernel hacker so I’m sure there are optimizations I’m not aware of.
[ Parent
| on HN ]
More like a tree.
https://elixir.bootlin.com/linux/latest/source/include/linux...
Re:Replacing Linux with a Database System
by jacoblambda on Saturday July 28, 2018 @10:52PM
(#17636253)
I know the kernel uses trees for a good number of different things. I'd imagine that processes would be a BST of some time and I remember Linus mentioning RB-Trees. It would definitely make the most sense as RB-Trees have better access and insertion than a sorted linked list.