Test program for vsock device communication.
Get vio_sockets.h from here: https://github.com/virtio-win/kvm-guest-drivers-windows/blob/master/viosock/inc/vio_sockets.h
Then compile with:
$ gcc vsock_test.c # linux
Test program for vsock device communication.
Get vio_sockets.h from here: https://github.com/virtio-win/kvm-guest-drivers-windows/blob/master/viosock/inc/vio_sockets.h
Then compile with:
$ gcc vsock_test.c # linux
from heapq import heappush, heappop | |
def FCFS(hp, reqs): | |
pos = hp | |
order = [hp] | |
time = 0 | |
# simply process the reqs list in order | |
for req in reqs: |