Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2014-03

Shared memory on various OSes

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Mark Morgan Lloyd

When a DLL/so is loaded dynamically by multiple program instances, are globals shared or would this require explicit use of OS-level shared memory?

The application is emulating a region of scratchpad memory (File Protect Memory) used by hardware in an obsolete computer (Burroughs B5700). This provided the locking that allowed multiple computers to share a common disc system.

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]

Reply by email

Michael Van Canneyt
to Mark Morgan Lloyd
Mark Morgan Lloyd wrote
When a DLL/so is loaded dynamically by multiple program instances, are globals shared or would this require explicit use of OS-level shared memory?

You'll need explicit use of OS-level shared memory.

Michael.

Reply by email

Mark Morgan Lloyd
to Michael Van Canneyt
Michael Van Canneyt wrote 7 lines
On Mon, 10 Mar 2014, Mark Morgan Lloyd wrote: > When a DLL/so is loaded dynamically by multiple program instances, are > globals shared or would this require explicit use of OS-level shared > memory? You'll need explicit use of OS-level shared memory.

Thanks, noted :-)

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]

Reply by email