A syndicate actor that helps other actors sequence access to Linux shared memory objects.
avon fddd0ba599 better actor names | пре 2 месеци | |
---|---|---|
example | пре 2 месеци | |
Makefile | пре 2 месеци | |
README.md | пре 2 месеци | |
shm-actor.py | пре 2 месеци | |
shm.bin | пре 2 месеци | |
shm.prs | пре 2 месеци |
A syndicate actor for managing shared memory objects on devices running linux. Requires syndicate-py and a running dataspace implementation.
Two additional actors are included in the example
directory to run a demo of the shm-actor.
To run the full demo, first start a Dataspace. I use the syndicate-server
. You can install this dataspace server impl using the following commands:
git clone https://git.syndicate-lang.org/syndicate-lang/syndicate-rs
cd syndicate-rs
cargo build --release
./target/release/syndicate-server -c dev-scripts/benchmark-config.pr
In a new terminal, run the shm-actor
python3 shm-actor.py
Then in yet another terminal, start running a consumer which will listen on a specific buffer:
python3 example/consumer.py
Finally, in a fourth terminal, start running a producer which will use the shm-actor to aquire a shared memory resource, write to it, then signal that it's write has finished:
python3 example/producer.py