multi-thread read and compare