Re: Thread safety?
Ludovic Rousseau <[email protected]> Wed, 14 Sep 2016 00:07:15 +0200
| Newsgroups | gmane.comp.lib.muscle |
|---|---|
| Message-ID | <CAGstE8CEX5Mi6Kfz7u0-830wReony6bfnVW6cSbBVC3cTQMdNQ@mail.gmail.com> |
2016-09-13 19:44 GMT+02:00 Jörn Heissler <[email protected]>: > 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 _______________________________________________ Pcsclite-muscle mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle