Hi everybody,
I am almost done and I am trying to
test my multithreading safety.
here is how my application is built.
I have
And I have created different tests to simulate multithreading:
1) test 50 remote access simultaneously:
This works fine: one
thread acquire the lock and the others wait until it is unlocked...
2) Same test but for 50 local access simultaneously:
This works fine also: one thread acquire the lock and the others wait until it is unlocked...
3) Now is where things don't work I do the same thing but create 2 threads: one remote and one local and start them : They both acquire the lock!!!
I don't understand what is wrong in my design that it does not work when i mix remote and local, but is perfectly safe with just remote or just local. It it the test or the code the problem?
Thank you very much for all your help in this
- Lydie