printQueue extended with printThread