threadprocs
This repository contains experimental code for thread-like processes, or multiple programs running in a shared address space. Each threadproc behaves like a process with its own executable, globals, libc instance, etc, but pointers are valid across threadprocs. This blends the Posix process model with the Posix multi-threading programming model, and enables things like zero-copy access to pointer-based data structures.
All Markdown files were written by hand.
See tproc-actors for one possible application framework building on top of threadprocs.
Demo
The code for the demoed programs is at example/sharedstr/allocstr.cpp and example/sharedstr/printstr.cpp , and neither contains any magic ( /proc/[pid]/mem , etc), nor awareness of the server and launcher.
allocstr reads input, and copies it into a new std::string , and prints &newstring to console.
reads input, and copies it into a new , and prints to console. printstr reads a pointer as hex text, and prints whatever std::string it finds there.
demo.mp4
Elevator pitch
... continue reading