Systems & automationProject record · Sep 2026

Software Systems & Automation

A Go-style runtime in C++

Cooperative scheduling, epoll-backed I/O, timers, and synchronization in C++17. Waiting tasks yield instead of blocking a worker.

C++17LinuxucontextepolleventfdpthreadCMake
Why it sits here. Most distinctive omitted systems artifact: low-level implementation depth is directly visible, although attribution and runtime validation are weaker.
05 / An architecture, opened up.STUDY IN SPACE

01 / IMPLEMENTATION & CONTRIBUTION

What the work involves

Implements a C++17 scheduler with guard-page stacks, epoll-backed I/O, timers, libc hooks, joinable tasks, and synchronization that yields cooperatively.

Technical depth

ucontext/makecontext/swapcontext scheduling across worker threads; mmap/mprotect stack guards; epoll and eventfd wakeups; deadline min-heap; read/write/recv/send/connect/accept/sleep hooks resolved with dlsym; user O_NONBLOCK tracking; parking handshake to avoid resuming before a context is saved; yielding mutexes and wait groups.

The project family

go-rountine

02 / RESULTS

What came out of it

A library with CMake targets and examples for scheduling, timers, and a loopback echo server.

03 / SUPPORTING EVIDENCE

Follow the source

Implementation notes, project records, and supporting artifacts.

Source context & project scope

Experimental Linux-specific runtime, not a Go implementation or production concurrency guarantee.

Examples do not establish scheduler race-freedom, cancellation correctness, stress reliability or benchmark throughput.

No independent authorship/date history found.

Throughput and latency have not been benchmarked.

C++17 library and echo/timer/basic-test build targets.

SOURCE · 2026-09-17

Context creation, worker scheduling and parking synchronization.

SOURCE · 2026-09-17

mmap allocation with mprotect guard page.

SOURCE · 2026-09-17

epoll/eventfd and timer heap.

SOURCE · 2026-09-17

libc I/O and sleep interception with yielding behavior.

SOURCE · 2026-09-17

Cooperative mutex and wait-group behavior.

SOURCE · 2026-09-17

A small end-to-end network example, not a stress benchmark.

SOURCE · 2026-09-17
CONTINUE IN SOFTWARE SYSTEMS & AUTOMATION

ApplyPilot workflow adaptation