Steve Foley added the comment:
sorry! this is the correct version ;-)
---
import mmap, os, select
NUM_CHILDREN = 30
MSG_LEN = 9
BUF_LEN = NUM_CHILDREN * MSG_LEN
buf = mmap.mmap(-1, BUF_LEN)
p = select.poll()
def write_buffer(i):
msg = '%s\
New submission from Steve Foley:
Hello, I would like to submit an example for the mmap docs page. It
demonstrates the use of shared memory and message passing between processes.
Thanks!
import mmap, os, select
NUM_CHILDREN = 30
MSG_LEN = 8
BUF_LEN = NUM_CHILDREN