并发案例:Java 操作 SQLite 数据库踩坑记

文章目录

  • 引言
  • SQLite 数据库基础
  • 踩坑背景
  • 问题复盘
  • 解决过程
  • 编码启示录

引言

本文介绍的是 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 us

你可能感兴趣的:(Java,并发编程技术实践之路)