Try to raise the priority of {@param threadId} to {@param targetThreadPriority}.
a Pair containing the original thread priority and the final thread priority that was set.