一面
- 自我介绍
- 介绍线程池
- 说一下 epoll 和 select(需要复习)
- 说一下 HTTP 解析,哪些状态
- 说一下如何实现用户登录
- 用户登录之后,刷新页面,如何保证登陆状态?答了 cookie 和 session
- 如何使用 cookie 和 session?session 保存在服务器内存里吗?
- 存在数据库里效率会不会太低,有没有用过缓存中间件?
- Linux 命令,如何查看当前进程占用 CPU 和 内存?答 top,问如何查看内存?面试官提示加 -m,这个要总结
- 如何查看主机的 TCP 连接
- 如何修改文件权限,文件权限分为哪几种
- Linux 下进程间通信?(糊弄过去了,没细讲)
- 讲到 socket 通信时,问客户端和服务端完整的通信过程
- 有没有了解 HTTPS 的连接过程
- 试图问数据库,回答只是用了一下
- 有没有了解 hash_table,实现讲一下
- 一般用什么语言?
- 写一道链表相加的算法,高位链表头,我反转链表,似乎有更优解
- 有什么问题,我问了转语言,面试官反问对转语言的看法,答非常乐意,给我讲了 golang 有指针,跟 C 比较像