The priority processes and threads on windows XP

How does the operating system will distribute the CPU time between threads, and allocated some CPU time including the flow of the thread's priority, as well as stops execution of the primary flow of the process?
