Demonstrates a common use case where 'volatile' is useful and essential.