jack malkovick
jack malkovick

Reputation: 533

Multi threaded writes to a MappedFile / MappedBytes

Is it possible in theory to write using Chornicle Bytes from multiple threads in different locations of the same memory mapped file (using a MappedBytes / MappedFile)?

What do I need to pay attention to? I sometimes get segmentation faults.

Upvotes: 1

Views: 80

Answers (1)

Peter Lawrey
Peter Lawrey

Reputation: 533520

The main thing to pay attention to is how resource are freed. This has be refactored and improved lately so I would take the latest version.

However, you can have concurrent access as Chronicle Map and Queue does this.

You might find using Chronicle Map (or Queue) is easier for your use case.

Upvotes: 0

Related Questions