avatar
l*y
1
电面:
1. 实现一个histogram, 能inc/get每种metric的counter.
void incCounter(String metric)
int getCounter(String metric)
2. followup: 修改以上histogram应付并发读写
onsite:
1. how to create a generic singleton class
2. 求integer流中最近k条数据的avg
public class KAvg {
public KAvg(int k );
public void add(int x);

public int getKAvg();
}
followup: 并发add/getAvg
3. 用AtomicLong或compareAndSwap原语实现spin_lock, spin_semaphore, reentrant_
spin_lock
描述spin_lock的self deadlock情况
4. design whatsapp
5. behavior/ team conflict/strength/weakpoint
6. go through background
avatar
e*a
2
did u work out these concurrency programming questions?
avatar
l*y
3
yes, lz is an expert on concurrency.

【在 e***a 的大作中提到】
: did u work out these concurrency programming questions?
avatar
z*s
4
赞分享 offer情况如何?

【在 l***y 的大作中提到】
: 电面:
: 1. 实现一个histogram, 能inc/get每种metric的counter.
: void incCounter(String metric)
: int getCounter(String metric)
: 2. followup: 修改以上histogram应付并发读写
: onsite:
: 1. how to create a generic singleton class
: 2. 求integer流中最近k条数据的avg
: public class KAvg {
: public KAvg(int k );

avatar
a*u
5
楼主大牛,最后去哪里了?
avatar
x*y
6
牛人。
请教:如何准备concurrency programming?
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。