From ea5480a2c499121bbc2071745b02af4d89ba211d Mon Sep 17 00:00:00 2001 From: yapancha Date: Sat, 26 Jan 2019 23:36:30 -0500 Subject: [PATCH] Uses of infinite loop (#27283) Some of the uses of an infinite loop just to suggest that the use of an infinite loop is not always an error --- guide/english/java/loops/infinite-loops/index.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/guide/english/java/loops/infinite-loops/index.md b/guide/english/java/loops/infinite-loops/index.md index bd3f9aabd5..df356795c9 100644 --- a/guide/english/java/loops/infinite-loops/index.md +++ b/guide/english/java/loops/infinite-loops/index.md @@ -85,3 +85,5 @@ while (true) The main advantage of using an infinite loop over a regular loop is readability. Sometimes, the body of a loop is easier to understand if the loop ends in the middle, and not at the end/beginning. In such a situation, an infinite loop will be a better choice. + +Uses: A lot of programs (embedded control software, graphical applications, games, web & DBMS servers, and even Unix or Posix or Linux kernels) is organized around an infinite event loop. Servers also listen to incoming traffic in an endless loop.