Multithreading
Considerations
In multithreaded programs, disk requests
should be serialized by the client program. Disk handles are not bound to a
thread and may be used across threads. You can open a disk in one thread and
use its handle in another thread, provided you serialize disk access.
Alternatively you can use a designated open-close thread, as shown in the
workaround below.