What is PID 0?

https://blog.dave.tf/post/linux-pid0/

105 points · 17 comments · view on lemmy.world

17 Comments

admin@lemmy.my-box.dev · 51 pts · 2y (2 replies)

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

possiblylinux127@lemmy.zip · 6 pts · 2y

Kernel: dies

qprimed@lemmy.ml · 2 pts · 2y
[ removed ]
jwt@programming.dev · 31 pts · 2y (5 replies)

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

admin@lemmy.my-box.dev · 3 pts · 2y

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 πŸ€¦β€β™‚οΈ

NeoNachtwaechter@lemmy.world · -5 pts · 2y (3 replies)

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

CsXGF8uzUAOh6fqV@lemmy.world · 13 pts · 2y (2 replies)

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

Cyber@feddit.uk · 2 pts · 2y (1 reply)
xthexder@l.sw0.com · 2 pts · 2y

Wrong kind of link 😜

boatswain@infosec.pub · 22 pts · 2y

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.

Shanedino@lemmy.world · 15 pts · 2y (1 reply)

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

lurch@sh.itjust.works · 8 pts · 2y

only fans? πŸ˜†

possiblylinux127@lemmy.zip · 9 pts · 2y

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

Edit: This guy knows things

spacetff@lemmy.ml · 7 pts · 2y (2 replies)

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 · 25 pts · 2y (1 reply)

I read that in Agent Smith's voice.

bruhduh@lemmy.world · 1 pts · 2y

Happy cake day

deltapi@lemmy.world · 3 pts · 2y (1 reply)

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 · 1 pts · 2y

Plot twist: the assailants were holograms