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