LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Threds (https://www.linuxquestions.org/questions/linux-newbie-8/threds-947530/)

elico 05-30-2012 02:29 AM

Threds
 
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 ?

Elico

pan64 05-30-2012 02: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.

Aquarius_Girl 05-30-2012 02:37 AM

Read about "context switch".


All times are GMT -5. The time now is 07:47 PM.