process thread scheduling
        Posted  
        
            by arvind
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by arvind
        
        
        
        Published on 2010-04-08T06:30:48Z
        Indexed on 
            2010/04/08
            6:33 UTC
        
        
        Read the original article
        Hit count: 517
        
scheduled-tasks
I have the following query regarding the scheduling of process threads. a) If my process A has 3 threads then can these threads be scheduled concurrently on the different CPUs in SMP m/c or they will be given time slice on the same cpu.
b) Suppose I have two processes A with 3 threads and Process B with 2 threads (all threads are of same priority) then cpu time allocated to each thread (time slice) is dependent on the number of threads in the process or not? Correct me if I am wrong is it so that cpu time is allocated to process which is then shared among its threads i.e. time slice given to process A threads is less than that of Process B threads.
© Stack Overflow or respective owner