Method for sharing resource using a virtual device driver and electronic device thereof

Various embodiments of the present disclosure is directed to a resource-sharing method and an electronic device using a virtual device driver, for example, in the operation method of the client electronic device, the virtual device driver corresponding to the physical device driver on the host electronic device , operation of generating within the client electronic device; Said host with a communication method specified in the electronic device, by using the virtual device driver, the operation of sharing the resource of the host electronic device; And after changing the second communication mode specified by the host electronic device, by using the virtual device driver, and may include an operation for sharing the resource of the host electronic device. Further, the various embodiments of this disclosure include one embodiment and other embodiments described above.