Practice ยท 2 of 2
Publish and Consume a Payload
Implement the canonical acquire/release handshake: storePayload writes the ordinary variable **then** publishes with release; waitAndRead spins with acquire then reads. The graded check interleaves the calls across simulated threads and requires the payload to arrive intact.
Difficulty: advanced
Press Submit to check your solution.
Back to lesson: Practice: Atomics in Motion