Skip to content

Comment on Resource efficient Thread Pools with Zig

Comments

This is the first four-state-machine thread algorithm.

And I like what I am seeing. Hopefully all transitions between states have been tested.

Good work.

Drawing them could help figuring out all (invalid) state transitions. Certainly would make a cool drawing.

Using a formal methods tool [0] like Alloy [1] would honestly be ideal.

[0] https://www.hillelwayne.com/tags/formal-methods/

[1] https://www.hillelwayne.com/tags/alloy/

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.