Slashdot Mirror


Ask Slashdot: What's the Most Often-Run Piece of Code -- Ever?

Hugo Villeneuve writes "What piece of code, in a non-assembler format, has been run the most often, ever, on this planet? By 'most often,' I mean the highest number of executions, regardless of CPU type. For the code in question, let's set a lower limit of 3 consecutive lines. For example, is it:
  • A UNIX kernel context switch?
  • A SHA2 algorithm for Bitcoin mining on an ASIC?
  • A scientific calculation running on a supercomputer?
  • A 'for-loop' inside on an obscure microcontroller that runs on all GE appliance since the '60s?"

7 of 533 comments (clear)

  1. For / While in C by Murdoch5 · · Score: 5, Funny

    for(;;){
    }

    OR

    while(1){
    }

    Starts all main control loops and all kernels.

    1. Re:For / While in C by Ragzouken · · Score: 5, Funny

      for(;;)
      {
      }

      while(1)
      {
      }

    2. Re:For / While in C by FatdogHaiku · · Score: 5, Funny

      Since no line "maximum" was defined I have to vote for SVCHOST running Windows update on XP....
      it keeps going and going and going...

      --
      You have the right to remain sentient. If you give up the right to remain sentient, you will be elected to public office
  2. Hello World. by SYSS+Mouse · · Score: 4, Funny

    Indeed.

  3. Slascode "asciifier" by psergiu · · Score: 5, Funny

    Must be the SlashCode "asciifier" which removes all non-ASCII characters in summaries and posts, thus mangling a lot of names, locations and math formulas.

    --
    1% APY, No fees, Online Bank https://captl1.co/2uIErYq Don't let your $$$ sit in a no-interest acct.
  4. ob by Hognoxious · · Score: 4, Funny

    on anything {
        displayHWinPtrAddrPtrScreen( {492EC5F8-477F-438E}.color.const::BLUE status:{492EC5F8-477F-438E}.const.DEATH } )
    }

    --
    Confucius say, "Find worm in apple - bad. Find half a worm - worse."
  5. Re:Bios code? by Memnos · · Score: 3, Funny

    I would have to guess any error handling code I have ever written. It may not be the most oft-run code, but for me it sure seems like it is..

    --
    I don't trust atoms -- they make up stuff.