场景题1:
a = 0;
Thread 1 {
int i = a;
a = 20
print(i)
}
Thread 2 {
int i = a;
a = 30
print(i)
}
Thread 3 {
printa()
}
main {
Thread1
Thread2
Thread3
}
会出现什么问题?
场景题2:
通过查看日志在两个时间输出如下,问第三个时间a是几
2020/04/19 8:00:33 20
2020/04/19 8:01:33 30
2020/04/19 8:02:33 a=?
2、数据库索引
介绍B+树
场景题1:
select * from x
1、where a = 1 and b = 1
2、where b = 1 and c = 1
3、where c = 1 and a = 1
怎么建索引?
select * from x
1、where b=1 order by a asc
2、where c=1 order by b asc
3、where a=1 order by c asc
索引是abc,问这三句能不能走索引
3、了解数据结构吗?
Java里的LinkedList和LinkedHashMap有啥区别
LinkedHashMap和HashMap有啥区别
HashMap是线程安全的吗?介绍一个线程安全的集合类(ConcurrentHashMap)
4、Linux命令:
查看CPU、查看内存、查看端口占用
6、手撕快排
7、RabbitMQ原理
8、项目中遇到的问题
全部评论
(3) 回帖