background picture of the home page

欢迎光临QUQI的个人博客

梦想是成为神奇宝贝大师

你好啊,陌生人QWQ (左下角播放音乐) (右下角切换主题)

Redis实现分布式锁存在的问题

问题一 一个线程如果遇到业务阻塞,在业务还没有处理完的时候,超过了时间释放了锁,当业务处理完了的时候,释放锁,那么这个锁可能是别的线程的锁,那么就会引发安全问题

thumbnail of the cover of the post

多线程八股

创建线程的四种方式 难易程度:☆☆ 出现频率:☆☆☆☆ 共有四种方式可以创建线程,分别是:继承Thread类、实现runnable接口、实现Callable接口、线程池创建线程 详细创建方式参考下面代码: public class MyThread extends Thread { @

thumbnail of the cover of the post

List 八股

数组概述 数组(Array)是一种用连续的内存空间存储相同数据类型数据的线性数据结构。 int[] array = {22,33,88,66,55,25}; ArrarList

thumbnail of the cover of the post