Electronic device and method of controlling thereof

Provided are an electronic apparatus and a control method thereof. The control method of the electronic apparatus comprises: receiving a user command for executing a second OS while a first OS is running; configuring a virtual sensor driver for receiving sensor data from a sensor device when the second OS is executed; receiving the sensor data from the sensor device by using the configured virtual sensor driver; and transmits the received sensor data to an application of the second OS.