design Pattern Multi Thred