// Code meme

The race condition

order #1042status: PAID(for now)cancel()ship()t = 0 mst = 50 mssaw PAID ✓saw PAID ✓Both checked the status. Both were right.Use a conditional write.ayushwing.com

Both checked the status. Both were right. Use a conditional write. Like every meme on this site, it is drawn entirely in code: an SVG built from TypeScript, no stock art.

The serious version: Model business workflows as state machines

← All memes