引言
本文介绍的是 Java 并发编程过程中,因共享数据库文件导致的死锁案例分析,这是笔者实践过程中的真实问题复盘,将其纳入专栏中,希望对读者朋友们有所启发。
SQLite 数据库基础
SQLite
是什么呢?它是一个 C 语言库,实现了一个小型、快速、自包含、高可靠性、功能齐全的 SQL 数据库引擎。 Sqlite 官网 是这样描述它的:
SQLite is a C-language library that implements a small, fast, self-contained, high-reliability, full-featured, SQL database engine. SQLite is the most used database engine in the world. SQLite is built into all mobile phones and most computers and comes bundled inside countless other applications that people use every day.
目前 SQLite
被嵌入到移动手机、电脑以及无数应用中,是一种被广泛使用的数据库。作为一种嵌入式数据库,它占用的系统资源少,处理速度快,是嵌入式系统开发比较受