Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use open's flag to separate readers and writers, handler multiple ops at a same time #61

Open
hakancelikdev opened this issue Jul 23, 2023 · 0 comments
Assignees
Labels
changelog documentation Improvements or additions to documentation enhancement New feature or request test
Milestone

Comments

@hakancelikdev
Copy link
Owner

hakancelikdev commented Jul 23, 2023

GDBM allows an application to have multiple databases open at the same time. When an application opens a GDBM database, it is designated as a reader or a writer. A GDBM database can be opened by at most one writer at a time. However, many readers may open the database simultaneously. Readers and writers can not open the GDBM database at the same time.

Speaking about application we usually mean a separate process. However, it is entirely normal for a multi-thread program to operate as a GDBM reader in one thread and writer in another, provided, of course, that the two threads don’t operate on the same database simultaneously.

https://www.gnu.org.ua/software/gdbm/manual/Intro.html

@hakancelikdev hakancelikdev added documentation Improvements or additions to documentation enhancement New feature or request changelog test labels Jul 23, 2023
@hakancelikdev hakancelikdev self-assigned this Jul 23, 2023
@hakancelikdev hakancelikdev mentioned this issue Sep 15, 2023
@hakancelikdev hakancelikdev added this to the 0.7.0 milestone Sep 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog documentation Improvements or additions to documentation enhancement New feature or request test
Projects
Status: 🔖 Ready
Development

No branches or pull requests

1 participant