Hi Carl, > The other thread is the main execution thread. The thing that is > happening is that the looping thread seems to be working just fine, > but the main thread gets stuck inside SCardGetStatusChange (pcsclite > library, source file: winscard_clnt.c on line 1033) trying to lock a > mutex. Here's where it gets weird: The looping thread is continually > locking and unlocking this same mutex as it runs its various function > calls, but for some reason the main thread is never given the lock, as > if the scheduler is being completely unfair or something. As far as I > know, both threads have the same priority (I have done nothing to > change them). It seems to be a starvation issue as those discuss in a previous thread (begin : [1] -- end [2]. I hope it may help you.
[1] http://archives.neohapsis.com/archives/dev/muscle/2004-q2/0217.html [2] http://archives.neohapsis.com/archives/dev/muscle/2004-q2/0240.html -- Damien Sauveron ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. _______________________________________________ Muscle mailing list [EMAIL PROTECTED] http://lists.drizzle.com/mailman/listinfo/muscle
