gioia://news
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
learnbyexample@programming.dev to Linux@lemmy.mlEnglish · 11 months ago

What is PID 0?

blog.dave.tf

external-link
message-square
17
fedilink
111
external-link

What is PID 0?

blog.dave.tf

learnbyexample@programming.dev to Linux@lemmy.mlEnglish · 11 months ago
message-square
17
fedilink
What is PID 0? · blog.dave.tf
blog.dave.tf
external-link
Yes, there's a PID 0! An explanation of what it is, and a quick walk through linux early boot code.
alert-triangle
You must log in or register to comment.
  • just another dev@lemmy.my-box.dev
    link
    fedilink
    English
    arrow-up
    53
    arrow-down
    1
    ·
    11 months ago

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

    • Possibly linux@lemmy.zip
      link
      fedilink
      English
      arrow-up
      7
      ·
      edit-2
      11 months ago

      Kernel: dies

    • qprimed@lemmy.ml
      link
      fedilink
      English
      arrow-up
      2
      ·
      11 months ago

      deleted by creator

  • jwt@programming.dev
    link
    fedilink
    arrow-up
    31
    ·
    11 months ago

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

    • just another dev@lemmy.my-box.dev
      link
      fedilink
      English
      arrow-up
      3
      ·
      edit-2
      11 months ago

      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
      link
      fedilink
      arrow-up
      3
      arrow-down
      8
      ·
      edit-2
      11 months ago

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

      • 柊 つかさ@lemmy.world
        link
        fedilink
        arrow-up
        14
        arrow-down
        1
        ·
        11 months ago

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

        • SayCyberOnceMore@feddit.uk
          link
          fedilink
          English
          arrow-up
          2
          ·
          11 months ago

          Link aggregation

          • xthexder@l.sw0.com
            link
            fedilink
            arrow-up
            2
            ·
            11 months ago

            Wrong kind of link 😜

  • boatswain@infosec.pub
    link
    fedilink
    arrow-up
    22
    ·
    11 months ago

    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
    link
    fedilink
    arrow-up
    15
    ·
    11 months ago

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

    • lurch (he/him)@sh.itjust.works
      link
      fedilink
      arrow-up
      8
      ·
      11 months ago

      only fans? 😆

  • Possibly linux@lemmy.zip
    link
    fedilink
    English
    arrow-up
    10
    ·
    edit-2
    11 months ago

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

    Edit: This guy knows things

  • spacetff@lemmy.ml
    link
    fedilink
    arrow-up
    7
    ·
    edit-2
    11 months ago

    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
      link
      fedilink
      arrow-up
      25
      ·
      11 months ago

      I read that in Agent Smith’s voice.

      • bruhduh@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        11 months ago

        Happy cake day

  • deltapi@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    11 months ago

    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.

    • Possibly linux@lemmy.zip
      link
      fedilink
      English
      arrow-up
      1
      ·
      11 months ago

      Plot twist: the assailants were holograms

Linux@lemmy.ml

linux@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !linux@lemmy.ml

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

  • !opensource@lemmy.ml
  • !libre_culture@lemmy.ml
  • !technology@lemmy.ml
  • !libre_hardware@lemmy.ml

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 230 users / day
  • 2.01K users / week
  • 7.7K users / month
  • 17.4K users / 6 months
  • 1 local subscriber
  • 54.3K subscribers
  • 7.61K Posts
  • 206K Comments
  • Modlog
  • mods:
  • nooter692@lemmy.ml
  • AgreeableLandscape@lemmy.ml
  • MarcellusDrum@lemmy.ml
  • Arthur Besse@lemmy.ml
  • Cyclohexane@lemmy.ml
  • d3Xt3r@lemmy.nz
  • BE: 0.19.9
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org