[Libguestfs] Is thread-safe for pread_device in python?

陳培泓 pahome.chen at mirlab.org
Wed Jul 19 15:59:00 UTC 2017


I want to test performance on reading one 1GB qcow2 file in python

I create multiple threads and read the qcow2 file by pread_device function
in python. And these threads share the same guest handler and device

Is pread_device thread-safe?

My result always shows pread_device can't get reply and corrupted
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libguestfs/attachments/20170719/3b9ebe80/attachment.htm>


More information about the Libguestfs mailing list