<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2016-09-13 19:44 GMT+02:00 Jörn Heissler <span dir="ltr"><<a href="mailto:pcsc@wulf.eu.org" target="_blank">pcsc@wulf.eu.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello,<br></blockquote><div><br></div><div>Hello,<br> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
I've got multiple card readers.<br></blockquote><div><br></div><div>How many card readers?<br> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Are the pcsc-lite and pyscard libs thread safe in a sense that I can<br>
assign one thread per reader and use multiple readers in parallel from a<br>
single python process that way?<br></blockquote><div><br></div><div>pcsc-lite and the CCID driver are (should be) thread safe.<br><br></div><div>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.<br></div><div>Just try and tell us what you find.<br><br></div><div>Bye<br></div><div><br>[1] <a href="https://wiki.python.org/moin/GlobalInterpreterLock">https://wiki.python.org/moin/GlobalInterpreterLock</a><br></div></div><br>-- <br><div class="gmail_signature"> Dr. Ludovic Rousseau</div>
</div></div>