A computer system has a 2-way set-associative cache with 128 sets. What is the total number of cache lines?
Q1. A computer system has a 2-way set-associative cache with 128 sets. What is the total number of cache lines?
Answer: 256
Explanation: Total cache lines = number of sets * associativity = 128 * 2 = 256 lines.