Sign in Join

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

Mailing lists / fpc-devel / 2006-08

Lock Free Memory Management

3 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

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

Helmut Hartl

Hello,

I want to give some input for discussion, as lately multithreading/processing
was talked about on the list. This is a paper about lock free memory management,
which could do a great job for Free Pascal too.

My question is does any of the core developers have experience with the CAS commands needed for such an implementation?

Does the Codegenerator already support this?
Are they portable?
How would you suggest to implement such operations platform independent?

Greets,

helmut

Reply by email

Michael Van Canneyt
to Helmut Hartl
Helmut Hartl wrote 7 lines
Hello, I want to give some input for discussion, as lately multithreading/processing was talked about on the list. This is a paper about lock free memory management, which could do a great job for Free Pascal too.

After having a cursory look at this, I believe the NexusDB memory manager for Delphi uses this technique or a similar one.

Show quoted text 7 lines
My question is does any of the core developers have experience with the CAS commands needed for such an implementation? Does the Codegenerator already support this? Are they portable? How would you suggest to implement such operations platform independent?

I don't think this is possible, as it depends on processor support ?

Michael.

Reply by email

Florian Klaempfl
to Michael Van Canneyt
Michael Van Canneyt wrote 6 lines
> > Does the Codegenerator already support this? > Are they portable? > How would you suggest to implement such operations platform independent? I don't think this is possible, as it depends on processor support ?

I think it can be implemented easily using InterlockedCompareExchange, no?

Reply by email