[Pcsclite-muscle] Thread safety?

Ludovic Rousseau ludovic.rousseau
Tue Sep 13 15:07:15 PDT 2016


2016-09-13 19:44 GMT+02:00 J?rn Heissler <pcsc at wulf.eu.org>:

> Hello,
>

Hello,


> I've got multiple card readers.
>

How many card readers?


> Are the pcsc-lite and pyscard libs thread safe in a sense that I can
> assign one thread per reader and use multiple readers in parallel from a
> single python process that way?
>

pcsc-lite and the CCID driver are (should be) thread safe.

But because of Python global interpreter lock [1] I am not sure you can
have 2 APDU exchanges on 2 readers at the same time.
Just try and tell us what you find.

Bye

[1] https://wiki.python.org/moin/GlobalInterpreterLock

-- 
 Dr. Ludovic Rousseau
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pcsclite-muscle/attachments/20160914/589566d2/attachment.html>



More information about the pcsclite-muscle mailing list