当前位置:网站首页>Happy gathering time
Happy gathering time
2022-07-07 23:23:00 【Full stack programmer webmaster】
Hello everyone , I meet you again , I'm the king of the whole stack .
The day before yesterday, several students in the class went to the happy gathering era to take the written exam . I had a try mentality , As a result, I received a notice the next day . After asking the students who went with him, they all said they didn't receive .
Monday I 10::10 We rushed to Huagong hotel , I am a 10:30 Divide that batch , After signing, wait patiently on the seat . The results are 11:15 I haven't called my name yet . It's only good to ask the front desk if it's called. I didn't hear it ( In fact, the original intention is to urge ), The staff said they would check , Let me wait outside , The rush really worked , After a few minutes, a staff member called my name .
After going in . The interviewer didn't let me introduce myself , Directly into the theme . He opened Baidu page with his mobile phone . Enter search keyword, With keyword The input of , There is a drop-down list below that shows the prediction search keyword, example : Enter Guangzhou , The drop-down list will show Guangzhou University ; Guangzhou Haixinsha, etc . Ask what data structure is used to realize this function . At that time, I was stunned , Ask such a profound question when you come , I thought about it and said that I would use the dictionary tree to realize , Then I roughly described the dictionary tree and its advantages .
Here I feel that the description was not very good , The correct approach should be to describe the narrative at the same time . While using paper and pen to describe it concretely , This can deepen the impression of the interviewer , It can also prove that you really understand rather than half a bucket of water with half a knowledge .
The second question the interviewer asked was : Now there is 15w Your users are connected to your server, ask server How to deal with the sending and receiving of user information .
I'll introduce myself to the interviewer first socket Programming . After the introduction, the interviewer interrupted me and said that you were talking about a user . existing 15w user , How to solve .
I said, : With multiple threads . Each thread processes a user's request .
interviewer :15w User connections are loaded into memory . Can you ? I said, : If there is not enough memory, you can consider multiple server, Then according to the user's ip The address range is divided into multiple server Top processing . interviewer : Now suppose there is only one server. One thread , How to deal with . ok , You win . Just a good answer, I don't know how to deal with , And let the interviewer answer how to deal with : The user's ip Address and port Save up , Put the user on server The initiated request is added to the message queue . Use multiple threads to process messages in the message queue ( According to the saved user ip And port Return to the user ).
Third question : Two administrators need to access the salary of employees in the database , If the salary is lower than 3000 Plus 300 Wages . Ask to write sql sentence .
The database didn't learn well , I don't understand . interviewer : I mainly want to ask how to prevent two people from accessing data at the same time and changing data at the same time .
I just remember to lock the data , As for the locking statement, I forgot .
Then the interviewer asked two more multiple-choice questions in the written exam , Just say it's over , Ask me what else I want to ask him , The whole process is 10 More minutes , I knew it was over .
Publisher : Full stack programmer stack length , Reprint please indicate the source :https://javaforall.cn/116216.html Link to the original text :https://javaforall.cn
边栏推荐
- opencv scalar传入三个参数只能显示黑白灰问题解决
- 高级程序员必知必会,一文详解MySQL主从同步原理,推荐收藏
- MATLAB signal processing [Q & A essays · 2]
- 智慧社區和智慧城市之間有什麼异同
- LDO穩壓芯片-內部框圖及選型參數
- 成年人只有一份主业是要付出代价的,被人事劝退后,我哭了一整晚
- LDO稳压芯片-内部框图及选型参数
- Inftnews | web5 vs Web3: the future is a process, not a destination
- Wechat forum exchange applet system graduation design (2) applet function
- Cloud native data warehouse analyticdb MySQL user manual
猜你喜欢
Wechat forum exchange applet system graduation design completion (7) Interim inspection report
Puce à tension stabilisée LDO - schéma de bloc interne et paramètres de sélection du modèle
UE4_UE5蓝图command节点的使用(开启关闭屏幕响应-log-发布全屏显示)
Wechat forum exchange applet system graduation design completion (6) opening defense ppt
Add data analysis tools in Excel
13、 System optimization
Mysql索引优化实战一
Unity3D学习笔记6——GPU实例化(1)
Wechat forum exchange applet system graduation design (3) background function
Ros2 topic (03): the difference between ros1 and ros2 [01]
随机推荐
违法行为分析1
PMP project management exam pass Formula-1
Oracle database backup and recovery
Coreseek: the second step is index building and testing
UE4_UE5蓝图command节点的使用(开启关闭屏幕响应-log-发布全屏显示)
Matlab SEIR infectious disease model prediction
HDU 4747 Mex「建议收藏」
re1攻防世界逆向
Network security sqlmap and DVWA explosion
Wechat forum exchange applet system graduation design (5) assignment
成年人只有一份主业是要付出代价的,被人事劝退后,我哭了一整晚
js 获取对象的key和value
漏洞复现----49、Apache Airflow 身份验证绕过 (CVE-2020-17526)
JS get the key and value of the object
Unity3d learning notes 5 - create sub mesh
Talk about the design and implementation logic of payment process
The 19th Zhejiang Provincial Collegiate Programming Contest 2022浙江省赛 F.EasyFix 主席树
v-for遍历对象
FreeLink开源呼叫中心设计思想
网络安全-安装CentOS