PostSharp6.1/Multithreading/Writing Thread-Safe Code with Threading Models/Compatibility of Threading Models

Compatibility of Threading Models

This table shows which threading models can you use as children based on the model of the parent.

Compatibility Matrix

Parent↓ Child→

Actor

Freezable

Immutable

Private

Reader-Writer Synchronized

Synchronized

Thread Affine

Thread Unsafe

Actor

No

Yes

Yes

Yes

No

No

No

Yes

Freezable

No

Yes

Yes

Yes

No

No

No

No

Immutable

No

Yes

Yes

Yes

No

No

No

No

Reader-Writer Synchronized

Yes (Own)

Yes

Yes

Yes

Yes (Shared)

No

No

No

Synchronized

Yes (Own)

Yes

Yes

Yes

Yes (Shared)

Yes (Shared)

No

No

Thread Affine

Yes (Own)

Yes

Yes

Yes

No

No

Yes

Yes (Shared)

Thread Unsafe

Yes (Own)

Yes

Yes

Yes

No

No

Yes

Yes (Shared)

Private

See Also