Here's how an analog ohmmeter works as discussed in my book "Teach Yourself Electricity and Electronics."