-   Linux - Newbie (
-   -   Threds (

elico 05-30-2012 03:29 AM

Hi all

In case of several threads that are doing their thing in parallel
what happens if one thread takes long time to accomplish it's
task and the time comes when the scheduler decides to give control
to another thread ?

What then ?


pan64 05-30-2012 03:32 AM

? what is the problem? it is called time sharing and is quite similar how the tasks/processes handled. Some threads are running the others are waiting for the scheduler to get CPU.

TheIndependentAquarius 05-30-2012 03:37 AM

Read about "context switch".

All times are GMT -5. The time now is 09:15 AM.