In a computer, a slot is an allocation of resources such as CPU time or…