tuning thread parking and unparking implementation