领英店面

职位是 Infra team for senior engineer

First half of the round
System knowledges:
1.virtual memory
2.transaction and underlying mechanism for it
3.mutex and semaphore
4.process vs thread

Second Half was coding: Build Max stack
push
pop
peek

popMax
peekMax

Follow up: How to make it thread safe.

感觉linkedin职位好少啊

请问楼主,make thread safe是怎么答的

应该就是细粒度的加锁,如何保护Shared data

意思是对TreeMap中每个key进行加锁,而不是整个map?

你这么回答的话,基本就挂了

可以发一些参考资料链接吗?

可以看下 OOD 与多线程 Udemy 课程

多谢