mit-pdos / xv6-riscv

Xv6 for RISC-V
Other
6.63k stars 2.4k forks source link

change pipewrite-full condition by while to avoding thundering herd #91

Open GroverZhu opened 2 years ago

GroverZhu commented 2 years ago

I saw in the lock course introduce this thundering herd problem, and in the labs, some branch deal with this, but this project in the pipewrite to judge pipewrite-full use "if" not "while" which may cause the thundering herd problem