What is PID 0? (blog.dave.tf)
from learnbyexample@programming.dev to linux@lemmy.ml on 17 Jun 04:08
https://programming.dev/post/15628718

#linux

threaded - newest

admin@lemmy.my-box.dev on 17 Jun 04:42 next collapse

It’s unused, you can go ahead and kill it.

[deleted] on 17 Jun 04:57 next collapse

.

possiblylinux127@lemmy.zip on 17 Jun 23:40 collapse

Kernel: dies

Shanedino@lemmy.world on 17 Jun 05:27 next collapse

It’s proportion integral derivative control of some functionality. Fans can use it.

lurch@sh.itjust.works on 17 Jun 07:40 collapse

only fans? 😆

jwt@programming.dev on 17 Jun 07:44 next collapse

ITT: people giving wrong answers to a post linked to a blog that answers the question ‘What is PID 0?’

NeoNachtwaechter@lemmy.world on 17 Jun 07:55 next collapse

Nonsense, yes. Isn’t that what low effort posts (like nothing else but a link) are made for?

CsXGF8uzUAOh6fqV@lemmy.world on 17 Jun 12:51 collapse

You can call it low effort, but Lemmy is a “link aggregator”. Even just sharing links has its value.

Cyber@feddit.uk on 17 Jun 22:20 collapse

Link aggregation

xthexder@l.sw0.com on 18 Jun 03:30 collapse

Wrong kind of link 😜

admin@lemmy.my-box.dev on 17 Jun 14:23 collapse

For me it just gives an error post0 failed to load.

Edit: that’s probably my lemmy client trying to approach this blog as though it were a lemmy instance 🤦‍♂️

deltapi@lemmy.world on 17 Jun 15:31 next collapse

The last time my community found a PID.0 in our midst, he was beaten downtown in broad daylight by over a dozen assailants, no witnesses.

possiblylinux127@lemmy.zip on 17 Jun 23:39 collapse

Plot twist: the assailants were holograms

spacetff@lemmy.ml on 17 Jun 18:41 next collapse

Mr. Anderson, Thank you for your analysis/work and well written treatise, on PID 0. I enjoyed learning more about Linux & Unix and a bit of history thereof as well.

deadbeef79000@lemmy.nz on 17 Jun 19:08 collapse

I read that in Agent Smith’s voice.

bruhduh@lemmy.world on 18 Jun 04:45 collapse

Happy cake day

boatswain@infosec.pub on 17 Jun 20:54 next collapse

The tl;dr from the article (which is actually worth a read):

The very short version: Unix PIDs do start at 0! PID 0 just isn’t shown to userspace through traditional APIs. PID 0 starts the kernel, then retires to a quiet life of helping a bit with process scheduling and power management. Also the entire web is mostly wrong about PID 0, because of one sentence on Wikipedia from 16 years ago.

possiblylinux127@lemmy.zip on 17 Jun 23:20 collapse

There is no PID 0. I guess I’ll read the article.

Edit: This guy knows things