Tagged articles
infinite loop
15 articles · Page 1 of 1

liandkSep 13, 2026 · Backend Development
This article provides a comprehensive guide to troubleshooting Java CPU 100% spikes in production, covering root cause categories, a standard SOP using top, jstack, and thread analysis, a real-world infinite loop case study, GC-related CPU issues, emergency mitigation steps, and long-term prevention practices.
JavaPerformance TuningRoot Cause Analysis
0 likes · 13 min read

The article walks through a real incident where a scheduled batch job contained an infinite while‑true loop, causing all 500 HikariCP connections to be held, slowing the application dramatically; it details the investigation steps, root‑cause analysis, and both emergency and long‑term fixes, plus a checklist to avoid similar bugs.
DebuggingHikariCPJava
0 likes · 7 min read

While both while(1) and for(;;) create infinite loops in C, this article explains their syntax, execution flow, and demonstrates through compiled assembly that, despite subtle differences, they generate identical machine code, helping developers understand any performance or size implications.
C++assemblycode optimization
0 likes · 5 min read

This article compares the infinite‑loop constructs for(;;) and while(1) in C, examining compiler optimizations, performance measurements on microcontrollers, coding style guidelines, and industry standards to determine if one form offers any real advantage over the other.
c-programmingcompiler optimizationembedded systems
0 likes · 7 min read

This guide shows how to protect a long‑running Go function that checks a RabbitMQ cluster by using time.After and a select statement to automatically stop the infinite loop after a configurable timeout, improving robustness and maintainability.
BackendTimeoutgolang
0 likes · 5 min read

This article examines the differences between while(true) and for(;;) infinite loops in Java, presenting equivalent code examples, compiling them to bytecode, and showing that both constructs compile to identical bytecode using a goto instruction, concluding there is no performance distinction.
Javabytecodefor
0 likes · 4 min read

This article explains the syntax and execution semantics of while(1) and for(;;) in C, compares their generated assembly code, and demonstrates through a practical gcc compilation that both constructs produce identical machine code for an infinite loop.
C++Compilerassembly
0 likes · 7 min read

While(1) and for(;;) both create infinite loops in C, but this article explains their syntactic forms, execution semantics, and demonstrates through compiled assembly that they generate identical machine code, highlighting subtle differences and confirming they are functionally equivalent.
C++assemblyfor loop
0 likes · 5 min read

This article explains the syntax and semantics of C's while(1) and for(;;) constructs, compares their execution flow, shows how to compile each to assembly with gcc, and demonstrates that, aside from file names, the generated code is identical under typical settings.
C++GCCassembly
0 likes · 6 min read

This article examines the origins of Java's infinite loop constructs, compares the frequency of for(;;) and while(true) in the JDK source, and shows through compiled bytecode that both forms are semantically identical and have no inherent performance advantage.
bytecodefor-loopinfinite loop
0 likes · 4 min read

The article compares the infinite loop constructs for(;;) and while(1) in C by compiling simple programs, examining the generated assembly with gcc, and shows that both produce identical machine code, while also noting compiler warnings and style preferences.
C++GCCassembly
0 likes · 5 min read

This article compares the two common ways to write infinite loops in Java—while(true) and for(;;)—exploring their origins, usage differences, and performance by examining JDK source counts and compiled bytecode, concluding they are functionally equivalent.
Javafor loopinfinite loop
0 likes · 5 min read

This article walks through setting up a Vagrant‑based experiment that injects an intentional infinite loop into a simple Spring MVC service, then demonstrates step‑by‑step how to identify the offending process using top, examine JVM heap with jstat, and trace the problematic thread with jstack to resolve a CPU‑100% issue.
CPUJVMJava
0 likes · 4 min read

This guide explains Python's while loop, covering its basic syntax, condition evaluation, use of continue and break, infinite loops, the optional else clause, and concise one‑line statements, all illustrated with flowcharts, GIFs, and example outputs.
Continuebreakelse clause
0 likes · 4 min read


Aotu LabJul 21, 2017 · Frontend Development
This article walks through designing and implementing a five‑image Swiper component that supports left‑right swipe gestures, infinite looping, and any number of images, detailing gesture handling, circular‑list data structures, rendering logic, performance optimizations, and edge‑case fixes with complete JavaScript code examples.
Carouselgestureinfinite loop
0 likes · 11 min read
