You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2362,13 +2362,13 @@ You shouldn\'t divide number by zero
2362
2362
2363
2363
## Q. The difference between Serial and Parallel Garbage Collector?
2364
2364
2365
-
**Serial Garbage Collector**
2365
+
**1. Serial Garbage Collector:**
2366
2366
2367
2367
Serial garbage collector works by holding all the application threads. It is designed for the single-threaded environments. It uses just a single thread for garbage collection. The way it works by freezing all the application threads while doing garbage collection may not be suitable for a server environment. It is best suited for simple command-line programs.
2368
2368
2369
2369
Turn on the `-XX:+UseSerialGC` JVM argument to use the serial garbage collector.
2370
2370
2371
-
**Parallel Garbage Collector**
2371
+
**2. Parallel Garbage Collector:**
2372
2372
2373
2373
Parallel garbage collector is also called as throughput collector. It is the default garbage collector of the JVM. Unlike serial garbage collector, this uses multiple threads for garbage collection. Similar to serial garbage collector this also freezes all the application threads while performing garbage collection.
0 commit comments