How is the cache line number determined in direct mapping?
In direct mapping, the cache line number (i) is determined by the formula i=j%m, where j is the main memory block number and m is the number of lines in the cache. The modulo operation ensures that each memory block maps to a specific cache line.