This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Note (clue): Exact queue size triggering the problem will depend on your available RAM | |
# Clean, compile, run C program: | |
rm a.out; cc -O3 -Wpedantic gc.c; time ./a.out 100000 | |
# Clean, compile, run Java program: | |
rm *.class; javac GC.java; time java GC 100000 | |
# Clean, compile, run Java program with verbose GC: | |
rm *.class; javac GC.java; time java -verbose:gc -XX:+PrintGCDetails GC 100000 |