Trying to perform some Threading with objects, help?
I have an application that manages user details. Each user is an object and need to perform the same code but needs to be on different threads. The problem I have is that the routine that spawns the threads seems to be unpredictable.
The problem I have is that the usernames can become stuffed and could miss user 1 and duplicate user 9 and could be random when the system has a little bit of load??? This is the output I get from debug view:
Go_E4 [ENTER]
Go_E4 User = aa1
Go_E4 User = aa10
Go_E4 User = aa2
Go_E4 User = aa3
Go_E4 User = aa4
Go_E4 User = aa5
Go_E4 User = aa6
Go_E4 User = aa7
Go_E4 User = aa8
Go_E4 User = aa9
Go_E4 [EXIT]
Bookmarks