Home

面试八股文

计算机基础 线程和进程的关系? 一个进程中可以有多个线程,多个线程共享进程的堆和方法区 (JDK1.8 之后的元空间)资源,但是每个线程有自己的程序计数器、虚拟机栈 和 本地方法栈。 线程是进程划分成的更小的运行单位,一个进程在其执行的过程中可以产生多个线程。线程和进程最大的不同在于基本上各进程是独立的,而各线程则不一定,因为同一进程中的线程极有可能会相互影响。线程执行开销小,但不利于资源的管理和保护;而进程正相反。 java并发多线程 为什么要用多线程 充分利用cpu多核优势,可以并发运行多个线程,减少了线程上下文切换的开销。 多线程机制可以大大提高系统整体的并发能力以及性能。 线程的生命周期和状态 线程死锁?如何避免? synchronized原理? ...

Read more

面经

阿里菜鸟一面 介绍下经历 介绍下某个比较出彩的项目、细节、架构等。 array和链表查找的性能。 ThreadPoolExecutor的几个参数,以及原理。 发散题:为啥不是先扩容corePoolSize到max,再放入队列。 ThreadLocal的使用场景、原理。 断言、assert。 redis的几种数据类型。 sorted sets和sets的区别,sorted set的实现原理。 dubbo和spring cloud的区别。 dubbo的原理,服务发现机制。 uml图,类图(类与类的几种关系) 关于ci、cd,test用例的想法。 编码规范化的了解,有装过那些插件吗。 电信翼支付一面 redis 比较有意思的...

Read more

Mac常用命令

Dock 栏 defaults write com.apple.Dock autohide-delay -float 0 && killall Dock defaults delete com.apple.Dock autohide-delay && killall Dock

Read more

Homebrew镜像地址

Homebrew 镜像地址(推荐中科大镜像) brew.git 镜像 中科大镜像:https://mirrors.ustc.edu.cn/brew.git 清华镜像:https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git GitHub镜像:https://github.com/Homebrew/brew.git homebrew-core.git 镜像 中科大镜像:https://mirrors.ustc.edu.cn/homebrew-core.git 清华镜像:https://mirrors.tuna.tsinghua.edu.cn/git/homebr...

Read more

Welcome

If you see this page, that means you have setup your site. enjoy! :ghost: :ghost: :ghost: You may want to config the site or writing a post next. Please feel free to create an issue or send me email if you have any questions.

Read more