当前位置:网站首页>Face the summary - club resort - 6 years
Face the summary - club resort - 6 years
2022-08-05 11:54:00 【Hu Yuqiao】
This article lists the various difficulties faced by others,And where you can't,I haven't learned yet:Netty就跳过了
I feel that the core valuable point of the interview is in the project introduction,Different people have different projects,Still look at other people's projects,The non-items in the Mianjing can only be regarded as basic or intermediate knowledge.
参考链接:https://mp.weixin.qq.com/s/eqJ4mKdS69ADOCoB4035Fg
1.丰疆智能
ArrayList 的扩容机制:
Initial creation does not define a length,第一次调用add定义为10,Subsequent expansion to the original1.5倍HashMap 什么场景下是线程不安全的?会导致什么后果?
jdk1.8之后put采用尾插法,Data will be overwritten under multi-threading当核心线程数未满,继续提交任务,是复用已经空闲的线程还是继续创建?
继续创建,On the one hand, it is for thread warm-up,The number of core threads itself is the configured optimal value,On the other hand, threads have the overhead of competing for resource locks before multiplexing.AQS 了解?里面都有哪些属性?AQS 有几种模式?你对 AQS 还有哪些理解?
State,CLH.独占和共享(…见尚硅谷-JUC-AQS篇)JVM 的内存模型?哪个区域不会发生 OOM?
[外链图片转存中…(img-srtbGtA0-1659345030120)]
2.西安移动研究院
包装类是深拷贝还是浅拷贝?
深拷贝.深拷贝:Make a fresh copy.浅拷贝:Only pointer references are copied,After modification, the original value is changed,IntegerThe bottom layer of the wrapper classfinal int ,就是深拷贝Redis 的 key 删除策略?
3种.定期删除(定时扫描),定时删除(It will be deleted when the expiration time is up),惰性删除(不处理,Use it and then judge whether to delete it)写代码时常见的内存泄漏?
- Long-lived references decorate short-lived references:static 引用 = 局部变量
- 数据库、文件IO、socketDisconnected without closing after connecting
- setAfter adding an object to the collection, modify the properties of the object and add it again(Modifying properties is modifyinghashcode)后.Repeatedly adding the original objecthashcode变更,Add in a new reference object,就会造成内存泄漏(…见尚硅谷-JVM-内存泄漏的8种情况)
线程 A 中创建线程 B,线程 B 如何捕获线程 A 的异常?
- A thread is defined in a child thread,设置setUncaughtExceptionHandler.(You can find code experiments online)
有哪些让线程阻塞的方法?有哪些类使用了 LockSupport?(Really good question)
- Object->wait,notify
- Condition->await,signal
- LockSupport->park,unpark.(AQSthe bottom isLockSupport阻塞线程,而AQSThe upper layer implementation isReentreenLock.lock, Future.get, CompletableFuture.get等这些,Their underlying code is used explicitlyLockSupport.park)
泛型中 Extends 和 Super 关键字的区别?在 put 操作多时用哪种,为什么?在 get 操作多时用哪种,为什么
- <? extends T>是上界通配符,包含T和T子类,只能取数据,不能读
- <? super T>是下界通配符,包含T和T超类,只能存数据,不能取
SpringBoot 自动装配原理?
- SpringBootEach configuration class is automatically loaded on startup,Components are then loaded on demand(For details, see Shang Silicon Valley-SpringBoot-自动装配,Learning skipped before,Learn it later)
3.西安卓派
- Spring 中的 ApplicationEvent 使用过?
- 事件监听,I didn't study because I didn't use it for a while.(尚硅谷-SpringAnnotation drivers are mentioned)
- DDD 了解?是否知道其中的术语?
- domain-driven design领域驱动设计:It is to split a large requirement into problem domains,The problem domain is broken down into objects,Then consider the invocation and collaboration between the various problem domains.is compared to procedural programming、A reference link to the evolution of object-oriented programming:https://wenku.baidu.com/view/ea44f92393c69ec3d5bbfd0a79563c1ec4dad74e.html
- HTTP 协议的无状态你怎么理解?无状态有啥好处和坏处?
- HTTPProtocols are stateless,This means that the server is unaware of the client state,2different requests to the server,服务器认为2This request has nothing to do with it.
- 相反,有状态就是cookie这种,The benefit is, of course, the saving of resources,The downside is that the server cannot log the user,This may be attacked by malicious frequent requests
4. 西安腾讯云
It is indeed Tencent,太难了.
- 谈谈什么是零拷贝?
- 减少CPU复制次数.kafka(kafkaOne of the reasons for the speed:The system bottleneck is the networkIO,而0Copy is to reduce the number of memory copies)底层就是0拷贝.参考博客:https://blog.csdn.net/shenchaohao12321/article/details/115464117
- 感觉还是挺重要的,只学了个皮毛,A chapter will be devoted to studying it later.
- 一共有几种 IO 模型?NIO 和多路复用的区别?
- Make up later,IOThis piece is really too fake.
- 参考链接:https://blog.csdn.net/lzb348110175/article/details/98941378
- TCP 怎么实现拥塞控制?怎么实现重传(说了思路不过具体的实现回答的不准确)?
- 慢开始,拥塞避免,快重传,快回复(难受啊,大学学的408Forgot all about it,The notes made are gone)
- 参考链接:https://blog.csdn.net/qq_46312987/article/details/124061775
5. 翼支付
- HashMap 如何减少 hash 碰撞;
- 线性探测法:A local conflict,Search backwards in linear order.ThreadLocalThat's the way
- 链式寻址法:If there is a conflict, add it to the back of the linked list.HashMap, HashTable
- 再Hash:hash之后hash
- 公共溢出区:hashTables are divided into base tables and overflow tables,Conflicting elements are placed in the overflow table
- Redis 热 Key 如何解决
- 热KeyJust multiple requests for accessRedis上同一个key,Make it a cluster
边栏推荐
- 60行从零开始自己动手写FutureTask是什么体验?
- [7.29-8.5] Review of wonderful technical blog posts in the writing community
- Go compilation principle series 9 (function inlining)
- 查询优化(TTFB过长)left join索引未生效
- Three.js 点击模型,高亮发光模型外轮廓
- nyoj1185最大最小值(线段树)
- Keras 模型多输出 loss weight metrics 设置
- 手把手教你定位线上MySQL慢查询问题,包教包会
- hdu2097 nyoj414 sky数 (进制转换)
- 2022 CCF International AIOps Challenge Finals and AIOps Seminar Registration Open
猜你喜欢

365 days challenge LeetCode1000 questions - Day 050 add a row to the binary tree binary tree

并非富人专属,一文让你对NFT改观

Exploration and practice of transaction link under multi-service mode

623. 在二叉树中增加一行 : 简单二叉树遍历运用题

Flink Yarn Per Job - RM启动SlotManager

STM32H743IIT6学习笔记03——使用第三方组件FreeRTOS

isn't it?Is there anyone who can't locate the slow query problem of MySQL online?

JS 从零手写实现一个call、apply方法

Go 语言快速入门指南: 基本类型

内存问题难定位,那是因为你没用ASAN
随机推荐
基于NSQ搭建高可用分布式消息队列
Http-Sumggling Cache Vulnerability Analysis
798. 差分矩阵
2022.08.03_每日一题
“蘑菇书”是怎样磨出来的?
2-2.基金的投资交易与结算
没开发人员,接到开发物联网系统的活儿,干不干?
Go编译原理系列9(函数内联)
hdu1455 Sticks(搜索+剪枝+剪枝+.....+剪枝)
hdu1455 Sticks (search+pruning+pruning+.....+pruning)
【7.29-8.5】写作社区精彩技术博文回顾
Exploration and practice of transaction link under multi-service mode
isn't it?Is there anyone who can't locate the slow query problem of MySQL online?
790. 数的三次方根
【分享】代码编程习惯:在多参数的方法的情况下需要对方法整理-即最多参数的方法为主要实现
795. 前缀和
A woman is the most beautiful life in the world
深度学习(四)分析问题与调参 理论部分
Cesium.js点线面绘制
广告电商系统