Is page mein assume kiya gaya hai ki aap kuch nahi jaante. Hum har word, symbol, aur picture ko build karte hain jo parent note 5.4.4 use karta hai, is tarah ke har idea uske pehle wale idea par tika ho.
Ek row of light switches ki picture socho. Har switch ek bit hai. Agar mere paas 3 switches hain, toh woh kitne alag patterns dikha sakti hain? Har switch ko independently on ya off karo:
Daayein taraf red count dekho: 3 switches se 2×2×2=8 patterns milte hain. Generally:
Is topic ko yeh kyun chahiye. Memory address ek row of bits hi hoti hai. Cache ka poora game yeh hai: "main har kaam par kitne bits kharchoon?" — aur "yeh bits kitne patterns naam de sakte hain?" ka answer exactly 2n hai.
Humne abhi dekha 8=23. Exponent notation 2n ka matlab hai "2 ko n baar khud se multiply karo".
20=1,21=2,22=4,23=8,26=64,210=1024
Ab ulta sawaal. Maan lo mere paas 64 patterns hain aur main poochhta hoon: kitne switches chahiye the? Jawab 6 hai, kyunki 26=64. Woh tool jo poochhe "konsa exponent yeh number deta hai?" — woh hai log2.
32-bit address ko 32 zeros aur ones ki tarah likhna bahut takleef deh hai. Hex 4 bits ko ek symbol mein pack karta hai, kyunki 4 bits 24=16 patterns dete hain aur hex mein exactly 16 digits hain: 0 1 2 3 4 5 6 7 8 9 A B C D E F.
0x prefix sirf flag karta hai "yeh hex hai". Toh 0x2 ka matlab value 2 hai; 0xA9 ka matlab 10×16+9=169 hai.
Is topic ko yeh kyun chahiye. Addresses parent mein har jagah hex mein dikhaye jaate hain (tag 0x2, index 0xA9). Hex sirf bit row ki rewrting hai — koi naya information nahi, bas kam characters.
Is topic ko yeh kyun chahiye. Parent page poori tarah ek address ko teen fields mein kaatne ke baare mein hai. Agar aap nahi jaante ki address sirf N bits ki ek row hai, toh kaatne ka koi matlab nahi.
Red bracket ek line dikhata hai: CPU ne arrow wale byte ke liye request ki, lekin cache ne poora bracketed run le liya. Woh bet laga raha hai ki aapko agli baar neighbors chahiye honge — woh bet hai spatial locality.
Is topic ko yeh kyun chahiye. Line woh unit hai jiske against sab kuch measure hota hai: offset bits = "line ke andar kaunsa byte", aur line count =C/L se index bits aate hain.