How to scan in multiple threads
To scan barcodes in multiple threads using Dynamsoft Barcode Reader, you need to create multiple instances of
BarcodeReader and run separate instance in each thread. Dynamsoft Barcode Reader SDK is non-thread safe. Please don't have multiple threads access the same
We have a sample that shows how to use multiple threads to read barcodes from images using the C API.
Get the sample: Multi-thread scanning in C >
Note: The sample is for Windows Edition, but the C code is the same as the Linux Edition. You can refer to the source code for reference and build your own application.