shared memory and data structure

A

and

Hi,
is it possible to store in the shared memory dynamic data structure
(like trees,list....)?if yes how can i do it?Regards.
 
N

Nobody

is it possible to store in the shared memory dynamic data structure
(like trees,list....)?if yes how can i do it?Regards.

The ANSI/ISO C standards don't mention "shared memory". However, assuming
that you have some (non-standard) way to obtain shared memory:

One issue is whether you can (and want to) make the shared memory appear
at the same address in all processes. If you cant, then you can't share
pointers between the processes, so you need to use e.g. indices or offsets
instead.

Also, you'll probably need some way to allocate blocks of memory from
within the shared region.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top