If i have process P1 which contain two thread T1 and T2,
then is it good to bind whole process to core C1 or To bind thread T1 to core C1 and T2 thread to C2 core.

Which will give more performance ?
If we assume C1 thread can consume CPU upto 80% and C2 thread consuming CPU to 10% for a single core.

Recommended Answers

All 2 Replies

I'm no expert, but isn't that something that you can leave up to the operating system?

Yep that would be my opinion, don't bind anything let the operating system make its own decision.

A lot of relatively brilliant minds have gone into writing the algorithms that the processor uses to decide which thread/process to run on which core. Supposing you can make a better decision is at best foolish.

You try and run many programs that all suppose they can do the binding better and circumvent the processors own routines and you are likely to tie the processor up in knots and prevent it working at all efficiently.

commented: Wise +4
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.