
10-18-2011, 05:28 PM
|
 |
Approved Member
|
|
Join Date: Jun 2011
Posts: 1,198
|
|
Quote:
Originally Posted by ZaltysZ
In affinity mask each bit represents one CPU: 1 value - use CPU, 0 value - don't. Bits are counted from right to left, so you need do the same with CPUs. In our case, that would be: 7, 6, 5, 4, 3, 2, 1, 0. Now replace wanted CPUs with 1s and unwanted with 0s. You will get: 0, 1, 0, 1, 0, 1, 0, 1 or simply 1010101. Convert that from binary to decimal (use Windows calculator) and get a mask of 85.
|
For those who enjoy math, the conversion from binary (base 2) to decimal (base 10) works out like this:
Code:
1010101 = 1*2^0 + 0*2^1 + 1*2^2 + 0*2^3 + 1*2^4 + 0*2^5 + 1*2^6
= 1 + 0 + 4 + 0 + 16 + 0 + 64
= 85
|