use concurrentlistqueue when accessing a list with a thread