csapp icon indicating copy to clipboard operation
csapp copied to clipboard

Figure 12.17 typo

Open zhuozhiyongde opened this issue 1 year ago • 3 comments

https://hansimov.gitbook.io/csapp/part3/ch12-concurrent-programming/12.5-synchronizing-thread-with-semaphores

配图有误(原书笔误)

Ref: https://stackoverflow.com/questions/48304514/what-does-this-x86-64-addq-instruction-mean-which-only-have-one-operand-from#comment83594042_48304514

Cleanshot-2023-12-17-at-15 09 14@2x

zhuozhiyongde avatar Dec 17 '23 07:12 zhuozhiyongde

这是来自QQ邮箱的假期自动回复邮件。你好,我最近正在休假中,无法亲自回复你的邮件。我将在假期结束后,尽快给你回复。图片链接二维码图片

dst111dst avatar Dec 17 '23 07:12 dst111dst

根据官方改错 似乎应该是改后面两句

https://csapp.cs.cmu.edu/3e/errata.html

p. 997, The text describing Figure 12.17 is correct, but the Figure itself has two typos: The Ui instruction should be addq $1, %rdx. The Si instruction should be movq %rdx, cnt(%rip). Posted 02/22/2018. Dr. Joann J Ordille

zhuozhiyongde avatar Dec 17 '23 17:12 zhuozhiyongde

@zhuozhiyongde 多谢补充和考证,有心了!我把这个 issue pin 起来。

Hansimov avatar Dec 17 '23 17:12 Hansimov