Specify only two threads and allow concurrent reading and writing.