Quantcast
Channel: Why sqlite is allowing second process to do write operation while first process is already doing write - Stack Overflow
Browsing index pages (2 articles)
↧

Why sqlite is allowing second process to do write operation while first...

I have written two process code both codes are copied below , let us assume sqlitep1.c refers to p1 and sqlitep2.c refers to p2 p1 constantly reads from database file sample.db and p2 writes to...

View Article


Answer by James for Why sqlite is allowing second process to do write...

SQLite does locks around transactions, not open connections. Without an explicit transaction (which you don't appear to be doing) each SQL statement is a separate transaction that ends when the...

View Article

Browsing index pages (2 articles)


Latest Images