摘要 |
Disclosed are a method and device for transmitting data in a virtual environment. The method specifically comprises: a client device creating a first data transmission module, and a main terminal device creating a second data transmission module; the client device distributing a shared memory located in a kernel space according to the first data transmission module and allowing the main terminal device to perform a read-write operation on the shared memory; the main terminal device acquiring an access right of the shared memory; and the client device and the main terminal device performing data transmission with the shared memory via the first data transmission module and the second data transmission module respectively. By taking a shared memory located in a kernel space as a transfer station for transmitting data, a data transmission rate is high, the operation is simple and few system resources are occupied. |