Example: Using Condition Variables