two_phase_channel

Crates.iotwo_phase_channel
lib.rstwo_phase_channel
version0.2.2
sourcesrc
created_at2024-02-29 09:22:18.728267
updated_at2024-03-02 08:43:54.589222
descriptionA safe synchronisation-free parallel communication channel by statically forbidding conflicting accesses
homepage
repositoryhttps://github.com/ISibboI/two_phase_channel
max_upload_size
id1157585
size36,314
(ISibboI)

documentation

README

Two-Phase Channel

Various safe synchronisation-free parallel communication channels. The channels support the transmission of one data item, i.e. they have no queue. The synchronisation is externalised by requiring zero-sized key types to access the channels. This is useful if a computation can be split into separate compute and communicate steps. Then, the two-phase channel allows the steps to work without any internal synchronisation, the threads only need to be synchronised between the steps.

While this libary was made with performance in mind, it is unclear if this pattern actually improves performance for any given computational task. Use at your own discretion.

Commit count: 0

cargo fmt