A syndicate actor that helps other actors sequence access to Linux shared memory objects.

avon fddd0ba599 better actor names пре 2 месеци
example fddd0ba599 better actor names пре 2 месеци
Makefile 020e82d1d7 init пре 2 месеци
README.md 020e82d1d7 init пре 2 месеци
shm-actor.py 020e82d1d7 init пре 2 месеци
shm.bin 020e82d1d7 init пре 2 месеци
shm.prs 020e82d1d7 init пре 2 месеци

README.md

Shm-actor

A syndicate actor for managing shared memory objects on devices running linux. Requires syndicate-py and a running dataspace implementation.

Demo

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