Welcome to the Slashdot Beta site -- learn more here. Use the link in the footer or click here to return to the Classic version of Slashdot.

Thank you!

Before you choose to head back to the Classic look of the site, we'd appreciate it if you share your thoughts on the Beta; your feedback is what drives our ongoing development.

Beta is different and we value you taking the time to try it out. Please take a look at the changes we've made in Beta and  learn more about it. Thanks for reading, and for making the site better!

Most run piece of code. Ever

Hugo Villeneuve (3504723) writes | about 9 months ago


Hugo Villeneuve (3504723) writes "What is the piece of code, in a non assembler format, that have run the most often, ever, on this planet?
By 'most often' I mean the highest number of execution, regardless of cpu type.
By 'piece of code' I mean from a minimum of 3 consecutive line of code.

For example, is it the:
- a unix kernel context switching?
- a SHA2 algo for bitcoin mining on an ASIC?
- A scientific calculation running on a CRAY?
- An 'for-loop' inside on an obscure microcontroler that runs on all GE appliance since the 60's?

Goal: Make an awesome t-shirt"

cancel ×


Sorry! There are no comments related to the filter you selected.

Answer: (0)

Anonymous Coward | about 9 months ago | (#45998353)

10 Print "Hello World"
20 Goto 10

It won't be interesting (1)

russotto (537200) | about 9 months ago | (#45998715)

It'll be some piece of boilerplate.

Re:It won't be interesting (1)

Marti Miller (3504737) | about 9 months ago | (#45999929)

You are probably right about the code line But I am sure it context of the application might be interesting.

Google Analytics (1)

edibobb (113989) | about 9 months ago | (#45999871)

var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-429350-1']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + ''; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })();

Spiders (1)

HomelessInLaJolla (1026842) | about 9 months ago | (#46000227)

Web crawling spiders. Point them to, include slashdot and wikispaces, and let it ride. Set the depth to whatever you want. The links are spaced just well enough for the spider to iterate itself to death. If you #include a BASIC interpreter in your spider (for whatever reason you may wish to do such a thing), when the spider hits this [] program, go ahead and unremark 127998. It doesn't do much on its own unless you give it some pools to work on and caches to dump to (DATA and PRINT), but it will keep the spider internals busy.


turrican (55223) | about 9 months ago | (#46000437)

Whatever the line of code is that displays "STOP 0x0000000A: IRQL_NOT_LESS_EQUAL"

Depends on the decade (1)

Damouze (766305) | about 9 months ago | (#46000483)

In the late '70s and early '80s:

and $0f
add a, $90
adc a, $40

Since then:

add al, $90
adc al, $40

Re:Depends on the decade (1)

Damouze (766305) | about 9 months ago | (#46000589)

I skipped the 'non-assembler' part, my apologies.

I still think it's a cool piece of code though and it's probably been run the most, especially in certain operating systems associated with the color blue :P.

In C:

a += (a >= 10 ? 7 : 55);

Re:Depends on the decade (1)

Damouze (766305) | about 9 months ago | (#46000631)

It must not be my day today, because I made a mistake:

In C it would have to be:

a &= 15;
a += (a >= 10 ? 48 : 55);

Check for New Comments
Slashdot Login

Need an Account?

Forgot your password?