commiting with queue,priority queue,memcpy