I have a question related to the time quantum asked for processes and threads in windows and linux.
I know that operating systems as a whole give a fixed number of time slices for each thread. (I know temporary quantum changes depending on the background or background threads. May also change depending on the priority of the process.)
Is there a fixed time slice for each process? E.g. If the OS gives 36 time quanta for each process, and if the process has 2 threads, then each will receive 18 quanta. If the number of threads becomes 3, each will get 12.
However, if there is no fixed quantum for each process, and the OS gives a fixed quantum for the thread (there is no dependence on the parent process.), Then I can make my process more efficient by creating several threads. (Assuming I don't have my two mutex / semaphores in my code.)
I have an application that runs on both OS (Windows and Linux). Therefore, I ask for this in a general sense.
thanks
source share