Pattern and Thread