What does the `-XX:+UseG1GC` option do in the JVM?
The `-XX:+UseG1GC` option enables garbage collection using multiple threads, allowing the JVM to improve performance in parallel tasks.
Thatâ€™s partially correct. While G1 GC does use multiple threads for garbage collection, its main purpose is low-latency performance and not just parallelism.
Can you describe how G1 GC minimizes pause times during garbage collection?