Has anybody tried hft_boy code on page 6? That's interprocess communication implemented using shared memory. Edit: file ipc.zip. I found the following:
1. Producer must be started first, o.w. consumer gives an error: "shm_open: No such file or directory". -- I want to be able to start the processes in any order.
2. If Producer restarts, then Consumer must be restarted as well. -- That's very inconvenient, if my producer goes down then I'd have to restart Consumer as well.
3. Consumer takes 100% of CPU time of one core. -- I think that's because Consumer is polling the buffer, can be resolved using semaphores?
Someone could comment how to resolve those?
THX
1. Producer must be started first, o.w. consumer gives an error: "shm_open: No such file or directory". -- I want to be able to start the processes in any order.
2. If Producer restarts, then Consumer must be restarted as well. -- That's very inconvenient, if my producer goes down then I'd have to restart Consumer as well.
3. Consumer takes 100% of CPU time of one core. -- I think that's because Consumer is polling the buffer, can be resolved using semaphores?
Someone could comment how to resolve those?
THX