Problem with high-priority threads