peterGraf / pbl

PBL is an MIT License open source C-language library of functions that can be used in a C or C++ project. PBL is highly portable and compiles warning free on Linux gcc, MAC OS X and Windows Microsoft Visual C++ 2010 Express Edition.
http://www.mission-base.com/peter/source/
MIT License
40 stars 12 forks source link

PBL ISAM, PBL KEYFILE: Record/Page Locking, Multi-Threads, Multi-Users.. #3

Closed mladinox closed 8 years ago

mladinox commented 8 years ago

Nice library, Peter, but the documentation don't mention anything about: Record/Page Locking, Multi-Threading, or Multi-User use.

Is this library thread safe?

Can use PBL inside an Multi-User application, like multi-user server..?

Greetings, excellent library, Thank you for this..

peterGraf commented 8 years ago

PBL is not thread safe. If you want to use it in a multi threaded application, thread safety has to be imposed on a level higher up.

I do not understand your question about multi-user, what would a datastructure library have to do with a multi-user application? Of course you can use PBL in a multi-user application, but PBL will not seperate the users for you.

mladinox commented 8 years ago

I mean about PBL-ISAM and PBL-KEYFILE, running embedded inside a network server application, sharing common ISAM/KEY files, serving requests from Multiple-Users. In this context, the library could to offer Record/Page Locking and Multi-Threading, great improvement to reach, because using mutexes(because no thread safe) slows the performance.

peterGraf commented 8 years ago

PBL was not built for a multi-user scenario. It does not do record or page locking. If you need those features, you have to look for another solution. Maybe just pick an open source database system.