Hello, Well, it seems the problems I've noticed aren't SMP related but more related with the Redhat distribution. For some reason the shared mutex isn't locking. pcsc-lite has a thread for each reader which monitors the reader/card status. This thread sometimes queries the driver. There is a mutex which protects this from colliding with the requests coming from the daemon to the driver. I have noticed that the daemon can call mutex_lock and then the thread can call it also before the daemon unlocks. This seems to be the case on about 6 Redhat machines I have tested. I have not noticed this on Solaris's C compiler or Mandrake. I do my development on Mandrake 6.1 which uses pgcc-2.91.66 (egcs-1.1.2) It seems there are a couple of pthread libraries around 0.7 and 0.8 I believe 0.8 is used under Mandrake and 0.7 is used on some older versions of Redhat. I also use ld-linux 1.9.5 If anyone has any ideas on this problem please let me know, I would really appreciate it. It seems to cause some really strange problems and it is hard to have the same problem occur multiple times. If I can fix this then pcsc-lite will be about 3 weeks from finished. Best Regards, Dave David Corcoran Purdue University 1008 Cherry Lane West Lafayette, IN 47906 [EMAIL PROTECTED] 765 - 427 - 5147 http://www.linuxnet.com *************************************************************** Linux Smart Card Developers - M.U.S.C.L.E. (Movement for the Use of Smart Cards in a Linux Environment) http://www.linuxnet.com/smartcard/index.html ***************************************************************