Yes, It can definitely be done via mmap the memory and marking the thread
process shared.

*fd=shm_open(...);*
*mmap(NULL, shmSize, PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0);*
*...*

*pthread_mutexattr_setpshared(&attr, PTHREAD_PROCESS_SHARED);*
*pthread_mutex_init(&metrics->lock, &attr);   *

*Regards,*
*Shaligram Prakash*


On Thu, 11 Apr 2019 at 17:13, <koolvivekv...@gmail.com> wrote:

> Can VPP and non-VPP Linux process share a single database (say shared
> memory)?  -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
>
> View/Reply Online (#12762): https://lists.fd.io/g/vpp-dev/message/12762
> Mute This Topic: https://lists.fd.io/mt/31029666/1192919
> Mute #vpp: https://lists.fd.io/mk?hashtag=vpp&subid=2729900
> Group Owner: vpp-dev+ow...@lists.fd.io
> Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [shaligra...@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#13051): https://lists.fd.io/g/vpp-dev/message/13051
Mute This Topic: https://lists.fd.io/mt/31029666/21656
Mute #vpp: https://lists.fd.io/mk?hashtag=vpp&subid=1480452
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to