All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

Experimental Thread-Like Processes: Multiple Executables in Shared Address Space

By

jer-irl

2mo ago· 4 min readenCode

Summary

The article describes an experimental GitHub repository called 'threadprocs' that implements thread-like processes, allowing multiple executables to run in a shared address space. This approach blends the Posix process model with multi-threading, enabling features like zero-copy access to pointer-based data structures across different threadprocs. Each threadproc behaves like a process with its own executable, globals, and libc instance, while maintaining pointer validity across threadprocs. The repository includes demo code and mentions a related application framework called 'tproc-actors' built on top of threadprocs.

Key quotes

· 5 pulled
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.
The code for the demoed programs is at exa
Snippet from the RSS feed
Experimental thread-like processes, multiple executables in one address space - jer-irl/threadprocs

You might also wanna read