Issues with time slicing

Posted by user12331 on Programmers See other posts from Programmers or by user12331
Published on 2012-09-02T04:53:28Z Indexed on 2012/09/02 9:49 UTC
Read the original article Hit count: 182

I was trying to see the effect of time slicing. And how it can consume significant amount of time. Actually, I was trying to divide a certain work into number of threads and see the effect.

I have a two core processor. So two threads can run in parallel. I was trying to see if I have a work w that is done by 2 threads, and if I have the same work done by t threads with each thread doing w/t of the work. How much does time slicing play a role in it

As time slicing is time consuming process, I was expecting that when I do the same work using a two thread process or by a t thread process, the amount of time taken by the t thread process will be more

Any suggestions?

© Programmers or respective owner

Related posts about linux

Related posts about multithreading