← 返回起始笔记位置

知识卡片

普通读书笔记卡 · 10877.a.1.b.2 · 生成模型:未记录

并行计时区分两种时间

理解等级:中级

墙钟时间衡量等待产出多久,用户 CPU 时间累计多个线程实际计算时间。原书的分形例墙钟时间下降而 CPU 时间相近,表示一部分工作同时开展。若需要解释提升幅度,分开记录计算和编码,以相同输入、构建方式和机器作对比。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    参考来源

    - 位置:《Programming Rust Fast, Safe Systems Development, 3rd ed. (First Early Release)》第01章《A Tour of Rust》|让线程在作用域内独占各自的带区,来源项目 `book-source`,`extracted/Programming Rust Fast, Safe Systems Development, 3rd ed. (First Early Release)/_epub-src/OEBPS/ch01.xhtml#a-concurrent-mandelbrot-program` - 结论依据:原文同列 real 与 user,并提出排除写盘来隔离计算时间。 - 原始内容:even though we still spent almost five seconds of processor time, the elapsed real time was only about 1.5 seconds. You can verify