What do the terms CPU-time Wall-clock-time mean?

Asked

Viewed 386 times

1

Some documentation (programming) refers to these terms when there is some sort of limitation as to the use of the CPU, for example:

Background tasks are limited by the amount of time use of Wall-clock.

Background tasks are limited to 30 seconds of use of the Wall-clock.

Without understanding what exactly these terms mean it is difficult to tailor a software so that it does not extrapolate the use of the recommended CPU.

1 answer

2


CPU Time is the time the processor spends to perform a task.

Wall Clock Time is all the time spent to perform a task, so if there are interruptions in the execution of the activity the Wall clock does not stop counting, but CPU time is not considered.

Interruption may occur because the processor shares its use with others threads or because you need to wait for an external device to respond to the CPU or the algorithm is on hold without running anything.

This is a way to differentiate if the limit you can use adopts one criterion or another. If the limit was by the CPU team actually it could run for minutes, hours or even days, as long as most of the time is not running anything.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.