A group of threads is created by ThreadGroup class. It provides a practical method for controlling thread groups collectively. This…