plasma-umass / browsix

Browsix is a Unix-like operating system for the browser.
Other
3.15k stars 181 forks source link

implement backpressure on Pipes #28

Open bpowers opened 8 years ago

bpowers commented 8 years ago

on a normal unix-like OS, if you write to a pipe more than can be appended to its internal buffer, your write block until the other end of the pipe reads out the data. This provides a good system that avoid unbounded buffer growth in the kernel -- we should implement the same thing. We currently already have logic for having reads from a pipe block, this should be somewhat symmetric with that