Priority of garbage collector thread

Priority of Garbage Collector thread will be low. This is because of reason that the process of GC running is expensive, so rather than interrupt critical tasks it should only be done when the system has time to do. It is worked on the real time concept that is “do the unimportant task in the background, and all critical task (all of which will have higher priority than the background task) in the foreground.”