Hi,
I use winscard.dll to communicate with smart cards Reader through usb ports.I have 2 cards that should be programmed simultaneously.I use threads to do this work.I defined 2 threads,then assigned each of them to a different sub with no critical section.Each of subs individually needs to 20 second for runing completely.
My problem is here : The time for runing threads together is 40 seconds.I thought multithreading is similar to multitasking and these threads will finish at 20 second simultaneously.
What do you think?Is problem in threading or ... ?
Best regards.
Aziz Sedaghat,
sedaghat_aziz@yahoo.com
I use winscard.dll to communicate with smart cards Reader through usb ports.I have 2 cards that should be programmed simultaneously.I use threads to do this work.I defined 2 threads,then assigned each of them to a different sub with no critical section.Each of subs individually needs to 20 second for runing completely.
My problem is here : The time for runing threads together is 40 seconds.I thought multithreading is similar to multitasking and these threads will finish at 20 second simultaneously.
What do you think?Is problem in threading or ... ?
Best regards.
Aziz Sedaghat,
sedaghat_aziz@yahoo.com