Walk me through how you would implement a thread-safe data queue for a real-time tracking system at KBR.