Practice · 2 of 2
Publish and Consume a Payload
CHALLENGE
Difficulty: advanced+25 XP
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.
Press Submit to check your solution.
Back to lesson: Practice: Atomics in Motion