Ludmila, our
display name policy askes for something that looks like a real last name, no abbreviation or unorthodox punctuation. "S-va" looks to abbreviated to possibly be a real name; please
edit your profile to spell out a complete last name. Thank you.
As for your question - yes, it does sound very much like this could be a problem due to threading issues, and proper synchronization is one possible solution. I suggest you look at where the date data is being stored - not just in the database, but the variable(s) that are used in your code when processing the data. Local variables are always safe from threading issues, but for instance variables, is there some way that two threads can gain access to the same instance? If so, you may need to use synchronization to prevent the instance data from being accessed concurrently. Or rewrite the other code so that instances are
not accessible to multiple threads. Or change the instance variable to a local variable, if that's possible.
Many other solutions may be possible, but it's hard to be more specific without knowing a lot more about the details of your code. It's also possible that the bug has nothing to do with threads and synchronization, so don't get too committed to this idea, yet. But for the symptoms you describe, it's very possible that threads are the problem.