U
U
user_of_toster2021-02-28 12:19:26
Programming
user_of_toster, 2021-02-28 12:19:26

What determines the speed of while true?

Take the following program (pseudocode):

a = 0
while (true) {
    a = a + 1
    print(a) 
}

What determines the rate of increase а? From the operating system, from the programming language, or from the processor\SSD?

How much will increase the rate of increase аif you remove print?

Is there a name for this "speed"?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dr. Bacon, 2021-02-28
@user_of_toster

1. processor
2. PL, although more precisely from the implementations of compilers and interpreters
If you remove print, the speed will increase significantly. And it is better to describe the problem you want to solve by asking "such" question.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question