ref/runtime/internal/flow: Add a flowcontroller.

The flow controller's job is to schedule threads keeping in mind
flow control counters, MTUs, and fairness.

The flow controller does impose some overhead as shown
by a simple benchmark:
BenchmarkWithFlowControl-12          300          57130246 ns/op
BenchmarkWithoutFlowControl-12       500          31617551 ns/op

Change-Id: Ieda29148928c8a6b4c51ebde72543b2f51b9c970
2 files changed
tree: 2c0ebf91e46304beeb3ecbdcee0fe581e40c0374
  1. cmd/
  2. examples/
  3. internal/
  4. lib/
  5. runtime/
  6. services/
  7. test/
  8. .gitignore
  9. AUTHORS
  10. CONTRIBUTORS
  11. envvar.go
  12. envvar_test.go
  13. LICENSE
  14. PATENTS
  15. README.md
  16. VERSION
README.md

Vanadium

This repository contains a reference implementation of the Vanadium APIs.

Unlike the APIs in https://github.com/vanadium/go.v23, which promises to provide backward compatibility this repository makes no such promises.