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.
z*8
8 楼
通拉的厕所下水在这里: 听说过toilet snorkel吗?
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.
z*8
10 楼
试过两次中文,但看的人很少,对不起多包涵。
【在 c*********7 的大作中提到】 : 强烈建议老张下次说中文,配英文字幕
t*3
11 楼
我这个EE的,会这样回答:先按照常规开若干线程,监控硬件利用率(CPU ,memory等等),然后根据性能表现来决定调整到一个合适的线程数量(例如10个线程 CPU 30%,20个线程40%,假设CPU 80%是安全上限,你可以开的上限是60个)。
2.
【在 l****6 的大作中提到】 : 那给一个这种题,怎么回答。感觉它需要一个确定的答案。比如上面的cpu core + 2. : : run : and