gps device and multi threading