14.05.2016, 14:34
@mk124: could you please give us more information about threads? I've seen some posts where you've written that using multiple threads and not running them on SAMP one may cause a server to crash. I would like to know some conditions in which it will definitely happen.
The reason why am I asking is that I'm using hibernate to store data in database and I would like to load and save data independently of the main code execution.
I suppose, the server can crash in cases where there are some SAMP functions are called (like get player location, skin, color etc) in java threads, am I right? Or it depends on chance?
Back to my question, the data loading and saving doesn't have anything with SAMP functions - so may I be sure that server won't crash after or during the thread execution?
The reason why am I asking is that I'm using hibernate to store data in database and I would like to load and save data independently of the main code execution.
I suppose, the server can crash in cases where there are some SAMP functions are called (like get player location, skin, color etc) in java threads, am I right? Or it depends on chance?
Back to my question, the data loading and saving doesn't have anything with SAMP functions - so may I be sure that server won't crash after or during the thread execution?