Redian新闻
>
捅 吃的厨房下水和通拉的厕所下水有什么不同?
avatar
捅 吃的厨房下水和通拉的厕所下水有什么不同?# Living
l*6
1
假如你要写一个backend service,你怎么决定用多少threads来serve requests。两家
公司都问了这个题。
另外,线程,进程,以及connections怎么合作。
avatar
z*8
2
捅 吃的厨房下水和通拉的厕所下水有什么不同?
avatar
d*e
3
标准答案不是#cpu_core+2嘛。

【在 l****6 的大作中提到】
: 假如你要写一个backend service,你怎么决定用多少threads来serve requests。两家
: 公司都问了这个题。
: 另外,线程,进程,以及connections怎么合作。

avatar
c*7
4
强烈建议老张下次说中文,配英文字幕
avatar
l*6
5
能解释一下吗?

【在 d******e 的大作中提到】
: 标准答案不是#cpu_core+2嘛。
avatar
c*o
6
同意

【在 c*********7 的大作中提到】
: 强烈建议老张下次说中文,配英文字幕
avatar
a*n
7
It depends on what kind of job you are going to run in backend, number of
cores, memory and disk access speed. You can create over 200 threads to run
small jobs but it is difficult to create 10 threads to do video encoding and
decoding.
avatar
z*8
8
通拉的厕所下水在这里:
听说过toilet snorkel吗?
avatar
l*6
9
那给一个这种题,怎么回答。感觉它需要一个确定的答案。比如上面的cpu core + 2.

run
and

【在 a*******n 的大作中提到】
: It depends on what kind of job you are going to run in backend, number of
: cores, memory and disk access speed. You can create over 200 threads to run
: small jobs but it is difficult to create 10 threads to do video encoding and
: decoding.

avatar
z*8
10
试过两次中文,但看的人很少,对不起多包涵。

【在 c*********7 的大作中提到】
: 强烈建议老张下次说中文,配英文字幕
avatar
t*3
11
我这个EE的,会这样回答:先按照常规开若干线程,监控硬件利用率(CPU
,memory等等),然后根据性能表现来决定调整到一个合适的线程数量(例如10个线程
CPU 30%,20个线程40%,假设CPU 80%是安全上限,你可以开的上限是60个)。

2.

【在 l****6 的大作中提到】
: 那给一个这种题,怎么回答。感觉它需要一个确定的答案。比如上面的cpu core + 2.
:
: run
: and

avatar
u*q
12
为什么要吃下水?
avatar
a*n
13
这种题目没有固定答案
avatar
x*5
14
感觉是要做 performance testing,然后根据实际表现来吧。
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。