golang面试常考问题 - Go语言中文社区

golang面试常考问题


1.golang

1.进程模型
https://changkun.de/golang/zh-cn/part2runtime/ch06sched/preemption/

  • 需要注意的是go运行时内核线程(M)的数量默认是10000个,你可以使用runtime/debug包里面的debug.SetMaxThreads(10000)来设置。
  • Go默认是给每个可用的物理处理器都分配一个逻辑处理器(p),如果你需要修改逻辑处理器(P)个数可以使用runtime包的runtime.GOMAXPROCS函数设置.
  • 至于goroutine(G)的数量则是由用户程序自己来确定,理论只要内存够大,可以无限制创建。
    2.读写锁
    3.syncMap
    https://docs.kilvn.com/go-internals/04.0.html
    https://draveness.me/golang/compile/golang-lexer-and-parser.html

4.grpc
5.垃圾回收机制

2.mysql

1.优化案例
2.索引原理

3.docker

1.多步构建,
2.cgroup

4.k8s

hpa

5.istio
6.elk
7.五种io模型

https://www.jianshu.com/p/a95bcb116765

8.如何实现分布式锁
9.channel
10.分布式算法

1.一致性hash
2.raft
3.时间轮

11.prometheus

https://fuckcloudnative.io/prometheus/2-concepts/metric_types.html
https://www.cnblogs.com/chenqionghe/p/10494868.html
https://prometheus.io/docs/prometheus/latest/querying/functions/#abs
https://github.com/1046102779/prometheus/blob/master/prometheus/querying/functions.md
11.kafka
https://blog.csdn.net/savortheflavor/article/details/88976316
https://blog.csdn.net/u012501054/article/details/80180370
12.redis
http://redisbook.com/
13.缓存
缓存击穿,缓存雪崩,缓存穿透。lru+时间轮,多级缓存
14.对公司有什么问题
1.团队规模
2.工作作息安排
3.该岗位工作内容
4.开源支持
5.技术分享
6.年假,年终奖,绩效待遇

版权声明:本文来源简书,感谢博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。
原文链接:https://www.jianshu.com/p/4200b9dce813
站方申明:本站部分内容来自社区用户分享,若涉及侵权,请联系站方删除。
  • 发表于 2020-01-29 15:38:47
  • 阅读 ( 1555 )
  • 分类:面试题

0 条评论

请先 登录 后评论

官方社群

GO教程

猜你喜欢