Multi-threaded processing of items